Socket for a network connection.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Networking.Tcp TcpSocket
DeltaEngine.Networking.Tcp OnlineServiceConnection
Namespace: DeltaEngine.Networking.Tcp
Assembly: DeltaEngine.Networking (in DeltaEngine.Networking.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The TcpSocket type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TcpSocket | Initializes a new instance of the TcpSocket class | |
TcpSocket(Socket) | Initializes a new instance of the TcpSocket class |
Methods
Name | Description | |
---|---|---|
Connect | ||
Dispose | Releases all resources used by the TcpSocket | |
Send |
Send any object to the receiving side. When byte data is big enough and compression is
allowed (not already compressed file data) the data will be send compressed via Zip.
View code on GitHub | |
ToByteArrayWithLengthHeader | ||
WaitForData |
Fields
Name | Description | |
---|---|---|
MinimumByteDataLengthToZip |
The amount of bytes where the packed data start to be smaller than the original one is
around 500 bytes, but there is also overhead in compressing and decompressing data, so it
only makes sense for at least 64kb of data (e.g. sending big network files).
View code on GitHub | |
nativeSocket |
Properties
Name | Description | |
---|---|---|
IsConnected | ||
TargetAddress | ||
Timeout | ||
UniqueID |
Events
Name | Description | |
---|---|---|
Connected | ||
DataReceived | ||
Disconnected | ||
TimedOut |
See Also