Call this member function to retrieve a socket option. GetSockOpt retrieves the current value for a socket option associated with a socket of any type, in any state, and stores the result in lpOptionValue. Options affect socket operations, such as the routing of packets, out-of-band data transfer, and so on.
OnClose Notifies a socket that the socket connected to it has closed.
OnConnect Notifies a connecting socket that the connection attempt is complete, whether successfully or in error.