コード例 #1
0
 public ClientObject(TcpClient x, Server y)
 {
     server = y;
     client = x;
     Id     = Guid.NewGuid().ToString();
     y.AddConnection(this);
 }
コード例 #2
0
 public Client(TcpClient tcpClient, Server serverObject)
 {
     Id      = Guid.NewGuid().ToString();
     _client = tcpClient;
     _server = serverObject;
     serverObject.AddConnection(this);
 }
コード例 #3
0
ファイル: Connection.cs プロジェクト: alb-byte/Fishy
 public Connection(TcpClient tcpClient, Server serverObject)
 {
     client          = tcpClient;
     server          = serverObject;
     requestHandler  = new RequestHandler();
     BinaryFormatter = new BinaryFormatter();
     serverObject.AddConnection(this);
 }