| TCPClient (1.1b) | |
| _Class_TCPClient | Object that simplifiy the creation of Encrypted TCP Client |
| Properties | |
| server_ip | IP Adress of the server |
| server_port | Port number of the server |
| max_recv_len | max # of characters to receive (TCPRecv) |
| Timeout | Receiving timeout (in ms). |
| Callback_Recv | Function that is called when data (Binary/String) is received from the server |
| Callback_Receiving | Function that is called when being receiving data from the server |
| Callback_LostConnection | Function that is called when the connection with the server is lost. |
| Callback_Timedout | Function that is called when a client is timed out |
| Functions | |
| _Class_TCPClient | Class constructor |
| Connect | Try to connect to the server specified by server_ip and server_port |
| Disconnect | Disconnect from the server |
| IsConnected | Check if the client is connected to a server |
| Send | Send data (Binary/String) to the server |
| Process | Function that calls all the client’s callbacks when events occures (Receiving, Lost connection...) |
Object that simplifiy the creation of Encrypted TCP Client
| Properties | |
| server_ip | IP Adress of the server |
| server_port | Port number of the server |
| max_recv_len | max # of characters to receive (TCPRecv) |
| Timeout | Receiving timeout (in ms). |
| Callback_Recv | Function that is called when data (Binary/String) is received from the server |
| Callback_Receiving | Function that is called when being receiving data from the server |
| Callback_LostConnection | Function that is called when the connection with the server is lost. |
| Callback_Timedout | Function that is called when a client is timed out |
| Functions | |
| _Class_TCPClient | Class constructor |
| Connect | Try to connect to the server specified by server_ip and server_port |
| Disconnect | Disconnect from the server |
| IsConnected | Check if the client is connected to a server |
| Send | Send data (Binary/String) to the server |
| Process | Function that calls all the client’s callbacks when events occures (Receiving, Lost connection...) |
Function that is called when a client is timed out
_Func($BufferLenght_LostData)
| $BufferLenght_LostData | Lenght of the buffer when timed out, corresponds to the amount of lost data (because buffer is flushed when time out occures) |
See Timeout
Class constructor
| $ip | Value to assign to server_ip |
| $port | Value to assign to server_port |
| $encrypt_pwd | Data encryption password. Must be the same as in the server. |
Try to connect to the server specified by server_ip and server_port
| $cb_Recv | Value to assign to Callback_Recv |
| $cb_Receiving | Value to assign to Callback_Receiving |
| $cb_LostConnection | Value to assign to Callback_LostConnection |
| $cb_TimedOut | Value to assign to Callback_Timedout |
| Success | Returns 1. @extended = Main socket identifier. |
| Failure | Returns 0 and set @error to: |
@extended = windows API WSAGetError return value (see MSDN).