コード例 #1
0
 /// <summary>
 /// Creates a new TcpCommunicationChannel object.
 /// 
 /// </summary>
 /// <param name="clientSocket">A connected Socket object that is
 ///             used to communicate over network</param>
 public TcpCommunicationChannel(Socket clientSocket)
 {
     this._clientSocket = clientSocket;
     this._clientSocket.NoDelay = true;
     IPEndPoint ipEndPoint = (IPEndPoint)this._clientSocket.RemoteEndPoint;
     this._remoteEndPoint = new ScsTcpEndPoint(ipEndPoint.Address.ToString(), ipEndPoint.Port);
     this._buffer = new byte[4096];
     this._syncLock = new object();
 }
コード例 #2
0
ファイル: ScsTcpClient.cs プロジェクト: arkanoid1/Temu
 /// <summary>
 /// Creates a new ScsTcpClient object.
 /// 
 /// </summary>
 /// <param name="serverEndPoint">The endpoint address to connect to the server</param>
 public ScsTcpClient(ScsTcpEndPoint serverEndPoint)
 {
     this._serverEndPoint = serverEndPoint;
 }
コード例 #3
0
 /// <summary>
 /// Creates a new TcpConnectionListener for given endpoint.
 /// 
 /// </summary>
 /// <param name="endPoint">The endpoint address of the server to listen incoming connections</param>
 public TcpConnectionListener(ScsTcpEndPoint endPoint)
 {
     this._endPoint = endPoint;
 }
コード例 #4
0
ファイル: ScsTcpServer.cs プロジェクト: arkanoid1/Temu
 /// <summary>
 /// Creates a new ScsTcpServer object.
 /// 
 /// </summary>
 /// <param name="endPoint">The endpoint address of the server to listen incoming connections</param>
 public ScsTcpServer(ScsTcpEndPoint endPoint)
 {
     this._endPoint = endPoint;
 }