SockClient component documentation

SockClient Members

SockClient overview

Public Instance Constructors

SockClientOverloaded. Initializes a new instance of the SockClient class.

Public Instance Properties

BufferSize Gets or sets the size of the data buffer. Set to -1 if you don't want to limit the size
Connected Gets the state of the socket, connected or not
DataCoding Gets or sets the default encoding for data codification
PackageSize Gets or sets the size of TCP packages.
RemoteHost Gets or sets the remote host or ip address
RemotePort Gets or sets the remote port

Public Instance Methods

BeginConnect Begin the connection to the remote host/port
BeginSendOverloaded. Sends data asynchronously to a connected Socket
Connect Establish the connection to the remote host/port
Disconnect Close the current connection
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
PeekOverloaded. Read the data available in the buffer but don't remove from it
Pending Gets the number of bytes available in the buffer
ReadOverloaded. Read data available in the buffer
ReadBytesOverloaded. Read N number of bytes from the buffer
ReadUntilOverloaded. Read data from the buffer until find a specified delimiter
SendOverloaded. Sends data to a connected Socket
ToString (inherited from Object)Returns a String that represents the current Object.

Public Instance Events

evClassException Occurs when a unmanage error is detected
evCloseConnection Occurs when the connection is closed
evDataReceived Occurs when new data is received.
evOpenConnection Occurs when the connection is established.
evSendComplete Occurs when the BeginSend method is completed

See Also

SockClient Class | Devshock.Net Namespace