# Socket

Inherits .Stream in gb

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...)

This class is creatable.

`DIM hSocket AS Socket hSocket = NEW Socket ( )`

Not documented

Properties |  | Methods |  | Events |
--- | --- | --- | --- | --- | ---
Host LocalHost LocalPort Path Port RemoteHost RemotePort Status |  | Connect Peek |  | Closed Error Found Read Ready |