<!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 - ServerSocket
 (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="serialport/_new+en">Previous</a>&nbsp;
<a href="serversocket/_connection+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
ServerSocket
 (gb.net)</h1>
This class listens to a socket, so your program can act as a server for both TCP and UNIX protocols.
<p>
This class performs its work asynchronously, so your program will not be stopped by  the internal work of the server object.
<p>
This class is developed to be only a server which accepts or denies connections, all the rest of work (sending data, receiving data...) will be performed by a <a href="socket+en">Socket</a>  started  by this server (one per each connection).
<p>
<div class="black"><font size="-2"><b>Symbols</b></font></div>
<div class="border">
This class is <a class="none" href="serversocket/_new+en">creatable</a>.<br>
This class is <i>enumerable</i> with the <a href="../../lang/foreach+en">FOR EACH</a> keyword.<br>
<hr><table class="none" cellspacing="0" cellpadding="0">
<tr>
<td align=left><b>Static&nbsp;properties</b></td><td width="32">&nbsp;</td>
</tr>
<tr valign=top>
<td>
<b><i>/comp/gb.net/serversocket/maxpathlength</i></b>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
<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/serversocket/count</i>&nbsp;&nbsp; <i>/comp/gb.net/serversocket/path</i>&nbsp;&nbsp; <i>/comp/gb.net/serversocket/port</i>&nbsp;&nbsp; <i>/comp/gb.net/serversocket/status</i>&nbsp;&nbsp; <i>/comp/gb.net/serversocket/type</i>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<a class="none" href="serversocket/accept+en">Accept</a>&nbsp;&nbsp; <a class="none" href="serversocket/close+en">Close</a>&nbsp;&nbsp; <a class="none" href="serversocket/listen+en">Listen</a>&nbsp;&nbsp; <a class="none" href="serversocket/pause+en">Pause</a>&nbsp;&nbsp; <a class="none" href="serversocket/resume+en">Resume</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<a class="none" href="serversocket/_connection+en">Connection</a>&nbsp;&nbsp; <a class="none" href="serversocket/_error+en">Error</a>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
</div>

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

