TCPHost Constructors
Definition
Overloads
TCPHost(IPEndPoint, ILogger) | Creates a new TCPHost instance |
TCPHost(IPEndPoint, Int32, Int32) | Creates a new TCPHost instance |
TCPHost(IPEndPoint, Int32, Int32, Int32) | Creates a new TCPHost instance |
TCPHost(IPEndPoint, ILogger, Int32, Int32) | Creates a new TCPHost instance |
TCPHost(IPEndPoint, ILogger, Int32, Int32, Int32) | Creates a new TCPHost instance |
TCPHost(IPEndPoint, ILogger)
Creates a new TCPHost instance
public TCPHost (System.Net.IPEndPoint endPoint, VoltRpc.Logging.ILogger logger = default);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to listen on
- logger
- ILogger
The ILogger to use. Will default to NullLogger if null
TCPHost(IPEndPoint, Int32, Int32)
Creates a new TCPHost instance
public TCPHost (System.Net.IPEndPoint endPoint, int receiveTimeout, int sendTimeout);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to listen on
- receiveTimeout
- System.Int32
How long until timeout from receiving
- sendTimeout
- System.Int32
How long until timeout from sending
TCPHost(IPEndPoint, Int32, Int32, Int32)
Creates a new TCPHost instance
public TCPHost (System.Net.IPEndPoint endPoint, int bufferSize, int receiveTimeout = 600000, int sendTimeout = 600000);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to listen on
- bufferSize
- System.Int32
The initial size of the buffers
- receiveTimeout
- System.Int32
How long until timeout from receiving
- sendTimeout
- System.Int32
How long until timeout from sending
TCPHost(IPEndPoint, ILogger, Int32, Int32)
Creates a new TCPHost instance
public TCPHost (System.Net.IPEndPoint endPoint, VoltRpc.Logging.ILogger logger, int receiveTimeout, int sendTimeout);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to listen on
- logger
- ILogger
The ILogger to use. Will default to NullLogger if null
- receiveTimeout
- System.Int32
How long until timeout from receiving
- sendTimeout
- System.Int32
How long until timeout from sending
TCPHost(IPEndPoint, ILogger, Int32, Int32, Int32)
Creates a new TCPHost instance
public TCPHost (System.Net.IPEndPoint endPoint, VoltRpc.Logging.ILogger logger, int bufferSize, int receiveTimeout = 600000, int sendTimeout = 600000);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to listen on
- logger
- ILogger
The ILogger to use. Will default to NullLogger if null
- bufferSize
- System.Int32
The initial size of the buffers
- receiveTimeout
- System.Int32
How long until timeout from receiving
- sendTimeout
- System.Int32
How long until timeout from sending
Exceptions
Will throw if the buffer size is less then 16