SocketConfig CLASS

Socket configuration used when creating new sockets.

Parent Class

All Members


TypeNameSignature
constructorSocketConfigpublic SocketConfig()
methodsetpublic void set(System.Network.TCPOption, var)
methodsetLocalAddresspublic void setLocalAddress(string)
methodsetLocalPortpublic void setLocalPort(int)

Constructors


public SocketConfig()

Create a default socket configuration object.


Methods


public void set(TCPOption opt, var value)

Set value for a TCP option.

Parameters

  • opt The TCP option name.
  • value The TCP option value. The type must be compliant with requirement for each option. See TCPOption for type requirements.

Throws


public void setLocalAddress(string localaddr)

Set local address. No checking will be done until the setting is used.

Parameters

  • localaddr

public void setLocalPort(int localport)

Set local port. No checking will be done until the setting is used.

Parameters

  • localport