25 lines
965 B
HTML
25 lines
965 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="style.css">
|
|
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
|
<title>UDP_SocketReady [RCBasic Doc] </title>
|
|
</head>
|
|
|
|
<body>
|
|
<p><h2>function UDP_SocketReady(socket) </h2></p>
|
|
<p>
|
|
Returns 0 for no activity and non zero for activity. You need to call CheckSockets() at some point before this otherwise it will always return 0.
|
|
</p>
|
|
<p id="rc_code"><code>
|
|
<span class="rc_keyword">If</span> UDP_SocketReady <b>(</b> <span class="rc_number">0</span> <b>)</b> > <span class="rc_number">0</span> <span class="rc_keyword">Then</span> <br>
|
|
<span class="rc_comment">'Socket has activity so we can do something here </span><br>
|
|
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
|
</code></p>
|
|
<br><p>Related:
|
|
<a href="checksockets.html">CheckSockets</a>
|
|
</p>
|
|
<p>
|
|
|
|
</body>
|
|
</html> |