<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<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>
<body>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help%3Fen"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;&nbsp;
<a href="../gb.net%3Fen">Up</a>&nbsp;&nbsp;
<a href="socket/_new%3Fen">Previous</a>&nbsp;&nbsp;
<a href="udpsocket/_error%3Fen">Next</a>&nbsp;&nbsp;
</td></tr></table>
<div class="notab">
<h1>
UdpSocket
 (gb.net)</h1>
This class allows <a href="../../def/gambas%3Fen">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%3Fen">Stream</a> class, so you can use standard <a href="../../def/stream%3Fen">stream</a> methods to read, write and close the socket.
<p>
<div class="black"><font color="white" size="-2"><b>Symbols</b></font></div>
<div class="border">
This class inherits <a href="../gb/stream%3Fen">Stream</a> in <a href="../gb%3Fen">gb - Gambas Internal native classes</a>.<hr>
This class is <a href="udpsocket/_new%3Fen">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>
<a href="../gb/stream/byteorder%3Fen">ByteOrder</a>&nbsp;&nbsp; <a href="../gb/stream/endofline%3Fen">EndOfLine</a>&nbsp;&nbsp; <a href="../gb/stream/handle%3Fen">Handle</a>&nbsp;&nbsp; <a href="../gb/stream/id%3Fen">Id</a>&nbsp;&nbsp; <i>/comp/gb.net/udpsocket/sourcehost</i>&nbsp;&nbsp; <i>/comp/gb.net/udpsocket/sourceport</i>&nbsp;&nbsp; <a href="udpsocket/status%3Fen">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 href="udpsocket/bind%3Fen">Bind</a>&nbsp;&nbsp; <a href="udpsocket/peek%3Fen">Peek</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<a href="udpsocket/_error%3Fen">Error</a>&nbsp;&nbsp; <a href="udpsocket/_read%3Fen">Read</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
</div>

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

