Summary description for Socket_Socks4a.
상속: SocketBase
예제 #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));
 }
예제 #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.");
     }
 }
예제 #4
0
 internal Bind_SO(
     Socket_Socks4a baseSocket,
     AsyncCallback cb, 
     object state) : base(cb, state)
 {
     _baseSocket = baseSocket;
 }
예제 #5
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)
 {
     this._baseSocket = baseSocket;
 }