Пример #1
0
 /// <summary>   
 /// Establishes the socket connection
 /// </summary>
 /// <param name="socket">
 ///  Socket instance
 /// </param>
 /// <param name="address">     
 /// IP address to connect to
 /// </param>
 /// <param name="port">    
 /// port to connect to     
 /// </param>
 internal virtual void ConnectSocket(BaseSocket socket, IPAddress address, int port)
 {
     socket.Connect(new IPEndPoint(address, port));
 }
Пример #2
0
 internal virtual void ConnectSocket(BaseSocket socket, string address, int port)
 {
     this.remoteAddr = HostNameResolver.GetAddress(address);
     socket.Connect(new IPEndPoint(this.remoteAddr, port));
 }