# UdpSocket

Inherits .Stream in gb

This class allows Gambas programs to communicate using UDP sockets. It can be used like a server or client, as each data fragment sent or received is identified with its host IP and port.

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

This class is creatable.

`DIM hUdpSocket AS UdpSocket hUdpSocket = NEW UdpSocket ( [ Port AS Integer ] )`

Not documented

Properties |  | Methods |  | Events |
--- | --- | --- | --- | --- | ---
SourceHost SourcePort Status TargetHost TargetPort |  | Bind Peek |  | Error Read |