- SocketCreate
- SocketClose
- SocketConnect
- SocketIsConnected
- SocketIsReadable
- SocketIsWritable
- SocketTimeouts
- SocketRead
- SocketSend
- SocketTlsHandshake
- SocketTlsCertificate
- SocketTlsRead
- SocketTlsReadAvailable
- SocketTlsSend
- WebRequest
- SendFTP
- SendMail
- SendNotification
SocketIsConnected
Controlla se il socket è attualmente connesso.
bool SocketIsConnected(
|
Pparametri
socket
[in] Handle del socket restituito dalla funzione SocketCreate(). Quando viene passato un handle errato _LastError, si attiva l'errore 5270 (ERR_NETSOCKET_INVALIDHANDLE).
Valore di Ritorno
Restituisce true se il socket è connesso, altrimenti - false.
Nota
La funzione SocketIsConnected() consente di verificare lo stato corrente della connessione socket.
La funzione può essere chiamata solo da Expert Advisors e scripts, poiché vengono eseguiti nei relativi thread di esecuzione. Se si chiama da un indicatore, GetLastError() restituisce l'errore 4014 - "Function is not allowed for call (la funzione non è consentita per la chiamata)".
Guarda anche