socket_open
- Синтаксис
-
native socket_open(const _hostname[], _port, _protocol = SOCKET_TCP, &_error);
Переменная | Описание |
---|---|
Нет агрументов |
- Описание
- Opens a new connection to hostname:port via protocol (either SOCKET_TCP or SOCKET_UDP), returns a socket (positive) or negative or zero on error. States of error: 0 - no error 1 - error while creating socket 2 - couldn't resolve hostname 3 - couldn't connect to given hostname:port