![]() |
Energy Core Library
|
Classes | |
| class | SocketConnection |
Static Public Member Functions | |
| static string | GetHostAddress (string host) |
| static AddressFamily | GetAddressFamily (string address) |
| static SocketType | GetSocketType (ProtocolType protocol, AddressFamily family) |
| static void | Shutdown (Socket socket) |
| static bool | IsConnected (Socket socket) |
| Check if socket is connected More... | |
| static string [] | GetSocketConfigurationStringArray (System.Net.Sockets.Socket socket) |
| Return current socket configuration as array of strings. More... | |
| static System.Net.Sockets.Socket | ConfigureSocket (System.Net.Sockets.Socket socket, int buffer, int timeout, int? linger, int? ttl, bool? exclusive) |
| Make configuration of System.Net.Sockets.Socket object. More... | |
| static System.Net.Sockets.TcpClient | ConfigureTcpClient (System.Net.Sockets.TcpClient socket, int buffer, int timeout, int? ttl, int? linger, bool? exclusive) |
| Make configuration of System.Net.Sockets.Socket object. More... | |
| static System.Net.Sockets.TcpListener | ConfigureTcpListener (System.Net.Sockets.TcpListener socket, int bufferSize, int timeout, int? ttl, int? linger, bool? exclusive) |
| Make configuration of socket. For more details look for full ConfigureSocket(). More... | |
| static System.Net.Sockets.Socket | ConfigureSocket (System.Net.Sockets.Socket socket) |
| Make configuration of System.Net.Sockets.Socket. For more details look for full ConfigureSocket(). More... | |
| static System.Net.Sockets.TcpClient | ConfigureTcpClient (System.Net.Sockets.TcpClient socket, int bufferSize) |
| Make configuration of System.Net.Sockets.TcpClient. For more details look for full ConfigureSocket(). More... | |
| static System.Net.Sockets.TcpClient | ConfigureTcpClient (System.Net.Sockets.TcpClient socket, int bufferSize, int timeout) |
| static System.Net.Sockets.TcpClient | ConfigureTcpClient (TcpClient socket) |
| static System.Net.Sockets.Socket | ConfigureTcpSocket (Socket socket, int bufferSize) |
| static System.Net.Sockets.Socket | ConfigureSocket (Socket socket, int bufferSize) |
| static System.Net.Sockets.Socket | ConfigureSocket (Socket socket, int bufferSize, int timeout) |
| static int | Ping (string address, int timeout, out System.Net.NetworkInformation.IPStatus status) |
| static int | Ping (string address, int timeout) |
| static int | Ping (string address) |
Properties | |
| static Energy.Base.Network.Settings | Settings [get] |
|
static |
Make configuration of System.Net.Sockets.Socket object.
| socket | System.Net.Sockets.Socket object |
| buffer | Buffer size in bytes (typically 8192) |
| timeout | Timeout in milliseconds (10000 for 10 seconds) |
| linger | Specifies behaviour when closing socket, possible values are: negative number to disable (attempts to send pending data until the default IP protocol time-out expires), zero (discards any pending data, for connection-oriented socket Winsock resets the connection), and positive number of seconds (attempts to send pending data until the specified time-out expires, if the attempt fails, then Winsock resets the connection). |
| ttl | TTL value indicates the maximum number of routers the packet can traverse before the router discards the packet |
| exclusive | Don't allow another socket to bind to this port |
|
static |
Make configuration of System.Net.Sockets.Socket. For more details look for full ConfigureSocket().
| socket | Socket object |
|
static |
|
static |
|
static |
Make configuration of System.Net.Sockets.Socket object.
| socket | System.Net.Sockets.Socket object |
| buffer | Buffer size in bytes (typically 8192) |
| timeout | Timeout in milliseconds (10000 for 10 seconds) |
| linger | Linger option |
| ttl | Time To Live (TTL) |
| exclusive | Don't allow another socket to bind to this port |
|
static |
Make configuration of System.Net.Sockets.TcpClient. For more details look for full ConfigureSocket().
| socket | Socket object |
| bufferSize | Buffer size in bytes (typically 8192) |
|
static |
|
static |
|
static |
Make configuration of socket. For more details look for full ConfigureSocket().
| socket | Socket object |
| bufferSize | Buffer size in bytes (typically 8192) |
| timeout | Timeout in milliseconds (10000 for 10 seconds) |
| linger | Linger option |
| ttl | Time To Live (TTL) |
| exclusive | Don't allow another socket to bind to this port |
|
static |
|
static |
|
static |
|
static |
Return current socket configuration as array of strings.
| socket |
|
static |
|
static |
Check if socket is connected
| socket |
|
static |
|
static |
|
static |
|
static |
|
staticget |