Summary description for Socket_Socks5.
상속: SocketBase
 private byte[] PrepareBindCmd(Socket_Socks5 baseSocket)
 {
     if (baseSocket.RemoteEndPoint != null)
     {
         return(this.PrepareCmd(baseSocket.RemoteEndPoint, 2));
     }
     if (baseSocket._remoteHost == null)
     {
         throw new InvalidOperationException("Unable to prepare bind command because of insufficient information.");
     }
     return(this.PrepareCmd(baseSocket._remoteHost, baseSocket._remotePort, 2));
 }
예제 #2
0
 byte[] PrepareBindCmd(Socket_Socks5 baseSocket)
 {
     if(null != baseSocket.RemoteEndPoint)
         return PrepareCmd(baseSocket.RemoteEndPoint, 2);
     else if(null != baseSocket._remoteHost)
         return PrepareCmd(baseSocket._remoteHost, baseSocket._remotePort, 2);
     else
         throw new InvalidOperationException("Unable to prepare bind command because of insufficient information.");
 }
예제 #3
0
 internal Bind_SO(Socket_Socks5 baseSocket,
     AsyncCallback cb, 
     object state) : base(cb, state)
 {
     _baseSocket = baseSocket;
 }
 internal Bind_SO(Socket_Socks5 baseSocket, AsyncCallback cb, object state) : base(cb, state)
 {
     this._baseSocket = baseSocket;
 }