TcpSocket ClassDelta Engine Documentation
Socket for a network connection. View code on GitHub
Inheritance Hierarchy

System Object
  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

public class TcpSocket : Client, IDisposable

The TcpSocket type exposes the following members.

Constructors

  NameDescription
Public methodTcpSocket 
Initializes a new instance of the TcpSocket class
Public methodTcpSocket(Socket)
Initializes a new instance of the TcpSocket class
Top
Methods

  NameDescription
Public methodConnect
Public methodDispose
Releases all resources used by the TcpSocket
Public methodSend
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
Public methodStatic memberToByteArrayWithLengthHeader
Public methodWaitForData
Top
Fields

  NameDescription
Public fieldStatic memberMinimumByteDataLengthToZip
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
Protected fieldnativeSocket
Top
Properties

  NameDescription
Public propertyIsConnected
Public propertyTargetAddress
Public propertyTimeout
Public propertyUniqueID
Top
Events

  NameDescription
Public eventConnected
Public eventDataReceived
Public eventDisconnected
Protected eventTimedOut
Top
See Also