Bojour
Il me semble que 3 commandes de TCPSocket ne fonctionnent pas:
It seems to me that 3 TCPSocket commands are not working:
Poll + WriteData + close
Exemple de la documentation:
Var socket1 As New TCPSocket
socket1.Address = "server.domain.com"
socket1.Port = 80
// connect the socket
socket1.Connect
// while the socket isn't connected
While Not socket1.IsConnected
// poll the socket to let it do its thing
socket1.Poll
// if an error occurs, the Error event will fire
Wend
// if we broke the loop because we're connected
If socket1.IsConnected Then
// here would be a great place to do a synchronous read operation...
socket1.WriteData ( "aa" )
// if an error occurs, the Error event will fire
End If
// close the socket
socket1.Close
//