<!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.Error
 (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="../udpsocket+en">Up</a>&nbsp;
<a href="../udpsocket+en">Previous</a>&nbsp;
<a href="_read+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
UdpSocket.Error
 (gb.net)</h1>
<div class="black"><font size="-2"><b>Syntax</b></font></div>
<pre class="syntax"><font color="blue">EVENT</font> <b>Error</b> <font color="blue">(</font> <font color="blue">)</font></pre>
This event raises when some failed (for instance socket binding failed). Status property will turn to a value lesser than zero, and socket will be automatically closed.
<p>
The <a href="status+en">Status</a> property value reflects the error:
<p>
<table class="table" border="0" bordercolor="#000000" cellpadding="4" cellspacing="0">
<tr><th>
Constant
</th><th>
Meaning
</th></tr>
<tr class="dark"><td valign="top">
<a href="../net+en">Net</a>.<a href="../net/cannotcreatesocket+en">CannotCreateSocket</a>
</td><td valign="top">
<a href="../../gb/system+en">System</a> didn't allow to create socket.
</td></tr>
<tr><td valign="top">
<a href="../net+en">Net</a>.<a href="../net/cannotwrite+en">CannotWrite</a>
</td><td valign="top">
<a href="../../gb/error+en">Error</a> trying to send data.
</td></tr>
<tr class="dark"><td valign="top">
<a href="../net+en">Net</a>.<a href="../net/cannotread+en">CannotRead</a>
</td><td valign="top">
<a href="../../gb/error+en">Error</a> tying to receive data.
</td></tr>
<tr><td valign="top">
<a href="../net+en">Net</a>.<a href="../net/cannotbindsocket+en">CannotBindSocket</a>
</td><td valign="top">
Unable to use (bind) desired Port.
</td></tr>
</table>

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

