Esempio n. 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();
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 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;
 }
Esempio n. 4
0
 /// <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;
 }