This function is used to connect to a TCP/IP server.
Context
- Windows client,
- Windows server,
- Mobile client,
- Mobile server,
- Java client,
- Java server,
- Adelia Web client,
- Adelia Cloud client.
Parameters
ALPHA(n) |
Server |
Host name or IP address of the server. |
NUM_BIN_4 |
Port |
Server's port number |
NUM_BIN_4 |
Socket |
Socket handle. |
NUM_BIN_4 |
ReturnCode |
Operation return code: 0 Operation completed successfully Other Specific error code |
Example
ALPHA(128) |
Host |
NUM_BIN_4 |
Port |
NUM_BIN_4 |
Socket |
NUM_BIN_4 |
Rc |
Server = 'host.domain.com'
Port = 10000
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSockConnectToServer' Host Port Socket Rc
IF Rc = 0
* connection established
...
List of the VaToolBx functions by topic