TCPClient Constructors
Definition
Overloads
TCPClient(IPEndPoint) | Creates a new TCPClient instance |
TCPClient(IPEndPoint, Int32) | Creates a new TCPClient instance |
TCPClient(IPEndPoint, Int32, Int32) | Creates a new TCPClient instance |
TCPClient(IPEndPoint, Int32, Int32, Int32, Int32) | Creates a new TCPClient instance |
TCPClient(IPEndPoint)
Creates a new TCPClient instance
public TCPClient (System.Net.IPEndPoint endPoint);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to connect to
TCPClient(IPEndPoint, Int32)
Creates a new TCPClient instance
public TCPClient (System.Net.IPEndPoint endPoint, int connectionTimeout);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to connect to
- connectionTimeout
- System.Int32
The timeout time for connection
TCPClient(IPEndPoint, Int32, Int32)
Creates a new TCPClient instance
public TCPClient (System.Net.IPEndPoint endPoint, int receiveTimeout, int sendTimeout);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to connect to
- receiveTimeout
- System.Int32
The receive timeout
- sendTimeout
- System.Int32
The send timeout
TCPClient(IPEndPoint, Int32, Int32, Int32, Int32)
Creates a new TCPClient instance
public TCPClient (System.Net.IPEndPoint endPoint, int bufferSize = 8000, int connectionTimeout = 7000, int receiveTimeout = 600000, int sendTimeout = 600000);
Parameters
- endPoint
- System.Net.IPEndPoint
The System.Net.IPEndPoint to connect to
- bufferSize
- System.Int32
The size of the buffers
- connectionTimeout
- System.Int32
The timeout time for connection
- receiveTimeout
- System.Int32
The receive timeout
- sendTimeout
- System.Int32
The send timeout