Create a TCP socket for the remote host and port.
- Parameters:
-
| hostname | remote hostname |
| port | remote port |
- Returns:
- the new socket descriptor, or -1 in case of invalid hostname, -2 in case of socket creation failure, -3 in case of connection failure.
- Since:
- 8.1R
- Note:
-
Definition at line 74 of file qSocket.c.