<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css">
<title>
Gambas Documentation - UdpSocket
 (gb.net)</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help+en"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../gb.net+en">Up</a>&nbsp;
<a href="socket/_new+en">Previous</a>&nbsp;
<a href="udpsocket/_error+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
UdpSocket
 (gb.net)</h1>
This class allows <a href="../../def/gambas+en">Gambas</a> programs to communicate using UDP sockets.
<p>
It can be used like a server or client, as each data fragment sent or received is identified with its host IP and port.
<p>
This class inherits from <a href="../gb/stream+en">Stream</a> class, so you can use standard <a href="../../def/stream+en">stream</a> methods to read, write and close the socket.
<p>
<div class="black"><font size="-2"><b>Symbols</b></font></div>
<div class="border">
This class inherits <a href="../gb/stream+en">Stream</a> in <a href="../gb+en">gb - Gambas Internal native classes</a>.<hr>
This class is <a class="none" href="udpsocket/_new+en">creatable</a>.<br>
<hr><table class="none" cellspacing="0" cellpadding="0">
<tr>
<td align=left><b>Properties</b></td><td width="32">&nbsp;</td>
<td align=left><b>Methods</b></td><td width="32">&nbsp;</td>
<td align=left><b>Events</b></td><td width="32">&nbsp;</td>
</tr>
<tr valign=top>
<td>
<i>/comp/gb.net/udpsocket/broadcast</i>&nbsp;&nbsp; <a class="none" href="../gb/stream/byteorder+en">ByteOrder</a>&nbsp;&nbsp; <a class="none" href="../gb/stream/endofline+en">EndOfLine</a>&nbsp;&nbsp; <a class="none" href="../gb/stream/handle+en">Handle</a>&nbsp;&nbsp; <a class="none" href="../gb/stream/id+en">Id</a>&nbsp;&nbsp; <i>/comp/gb.net/udpsocket/sourcehost</i>&nbsp;&nbsp; <i>/comp/gb.net/udpsocket/sourceport</i>&nbsp;&nbsp; <a class="none" href="udpsocket/status+en">Status</a>&nbsp;&nbsp; <i>/comp/gb.net/udpsocket/targethost</i>&nbsp;&nbsp; <i>/comp/gb.net/udpsocket/targetport</i>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<a class="none" href="udpsocket/bind+en">Bind</a>&nbsp;&nbsp; <a class="none" href="../gb/stream/close+en">Close</a>&nbsp;&nbsp; <a class="none" href="udpsocket/peek+en">Peek</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<a class="none" href="udpsocket/_error+en">Error</a>&nbsp;&nbsp; <a class="none" href="udpsocket/_read+en">Read</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
</div>

</div>
</body>
</html>

