ClientSocket

Inherits ClientSocketInterface.

Functions

Name

Description

connectToServer

Connects the client to a server.

sendDataToServer

Sends data to a server.

setServerDisconnectCallback

Sets the function that will be called when the client gets disconnected from the server.

setDataReceivedCallback

Sets the function that will be called when data is received from the server.

getConnectedServer

Returns information about the server on which the client is connected to.