Exemple #1
0
 /// <summary>
 ///     a server
 /// </summary>
 /// <param name="client">TCPClient client</param>
 /// <param name="dataServer">DataServer dataServer</param>
 public Server(TcpClient client, DataServer dataServer)
     : base(client, true)
 {
     server     = dataServer;
     notifiers  = new List <int>();
     identifier = new ClientIdentifier(-1, "UNKNOWN", Authentication.Rights.UNKNOWN);
 }
Exemple #2
0
 /// <summary>
 ///     make a connection with {#BlameCode}
 /// </summary>
 /// <param name="port">int port</param>
 public ServerConnector(int port)
 {
     listener   = new TcpListener(port);
     dataServer = new DataServer();
 }