Summary description for Socket_Socks5.
Inheritance: SocketBase
コード例 #1
0
 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;
 }
コード例 #4
0
 internal Bind_SO(Socket_Socks5 baseSocket, AsyncCallback cb, object state) : base(cb, state)
 {
     this._baseSocket = baseSocket;
 }