C# Class SocketExtensions, code

Show file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
Connect ( Socket, socket, Array, addresses, int port, TimeSpan, timeout ) : void

Connects the specified socket.

Connect ( Socket, socket, string host, int port, TimeSpan, timeout ) : void

Connects the specified socket.

Private Methods

Method Description
AsyncConnect ( Socket, socket, Func, connect, TimeSpan, timeout ) : void

Asyncs the connect.

Method Details

Connect() public static method

Connects the specified socket.
public static Connect ( Socket, socket, Array, addresses, int port, TimeSpan, timeout ) : void
socket Socket, The socket.
addresses Array, The addresses.
port int The port.
timeout TimeSpan, The timeout.
return void

Connect() public static method

Connects the specified socket.
public static Connect ( Socket, socket, string host, int port, TimeSpan, timeout ) : void
socket Socket, The socket.
host string The host.
port int The port.
timeout TimeSpan, The timeout.
return void