The TcpServer type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
TcpServer(Int32) |
Initializes a new instance of the TcpServer class.
| |
TcpServer(IPAddress, Int32, Boolean, Boolean) |
Initializes a new instance of the TcpServer class.
|
Methods
Name | Description | |
---|---|---|
CloseConnection |
Close an active connection.
| |
Dispose |
Release the resources associated with this object.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Start |
Start the Tcp server.
| |
Stop |
Stop the Tcp server.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
MaxPendingConnections |
The maximum number of connections that can be pending.
|
Properties
Name | Description | |
---|---|---|
ActiveConnectionCount |
Gets the number of active connections.
| |
ActiveConnections |
Gets the list of active connections.
| |
IPAddress |
Gets the IP address the Tcp server is bound to.
| |
IsRunning |
Gets the state of the server.
| |
LittleEndianByteOrder |
Gets or sets the expected endianness of integral value types.
| |
Port |
Gets the port the Tcp server is bound to.
| |
ReceiveDataInline |
Gets the data reception mode applied to the Tcp server.
|
Events
Name | Description | |
---|---|---|
Connected |
Raised when a connection is established.
| |
DataReceived |
Raised when data is received.
| |
Disconnected |
Raised when a connection is disconnected.
|
See Also