Socket

This class implements a socket client to allow your programs to connect with socket servers. TCP and Local (Unix sockets) connections are implemented. This class performs its work asynchronously, so the program will not be stopped while connecting, sending or receiving data.

This class inherits from ".Stream" class, so you can use standard streams methods to send and receive data, and to close the socket ( print, read, write...)

hSocket = NEW Socket ( [ Path AS String ] )

EventsPropertiesMethodsConstants
Closed 
Error 
Found 
Read 
Ready 
 
LocalHost 
LocalPort 
Path 
RemoteHost 
RemotePort 
Status 
 
Connect 
Peek 
 
CannotCreateSocket 
CannotRead 
CannotWrite 
Connected 
Connecting 
ConnectionRefused 
HostNotFound 
Inactive 
Searching 
 


Referenced by :