Summary description for Socket_Socks4a.
Inheritance: SocketBase
Example #1
0
 public Bind_SO(
     Socket_Socks4a baseSocket,
     AsyncCallback cb,
     object state) : base(cb, state)
 {
     _baseSocket = baseSocket;
 }
 private byte[] PrepareBindCmd(Socket_Socks4a 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));
 }
Example #3
0
 byte[] PrepareBindCmd(Socket_Socks4a 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.");
     }
 }
 internal Bind_SO(
     Socket_Socks4a baseSocket,
     AsyncCallback cb, 
     object state) : base(cb, state)
 {
     _baseSocket = baseSocket;
 }
 byte[] PrepareBindCmd(Socket_Socks4a 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.");
 }
 internal Bind_SO(Socket_Socks4a baseSocket, AsyncCallback cb, object state) : base(cb, state)
 {
     this._baseSocket = baseSocket;
 }