Option Strict On
''' 
''' Enumeration containing the various supported network protocols.
''' 
Public Enum WinsockProtocol
    ''' 
    ''' Transmission Control Protocol - a connection oriented protocol.
    ''' 
    Tcp = 0
    ''' 
    ''' User Datagram Protocol - a connection-less protocol.
    ''' 
    Udp = 1
End Enum
''' 
''' Enumeration containing the various Winsock states.
''' 
Public Enum WinsockStates
    ''' 
    ''' The Winsock is closed.
    ''' 
    Closed = 0
    ''' 
    ''' The Winsock is listening (TCP for connections, UDP for data).
    ''' 
    Listening = 1
    ''' 
    ''' The Winsock is attempting the resolve the remote host.
    ''' 
    ResolvingHost = 2
    ''' 
    ''' The remote host has been resolved to IP address.
    ''' 
    HostResolved = 3
    ''' 
    ''' The Winsock is attempting to connect to the remote host.
    ''' 
    Connecting = 4
    ''' 
    ''' The Winsock is connected to a remote source (client or server).
    ''' 
    Connected = 5
    ''' 
    ''' The Winsock is attempting to close the connection.
    ''' 
    Closing = 6
End Enum