Exemple #1
0
 public Client(BridgeConnection parent, Socket socket)
 {
     Parent = parent;
     Socket = socket;
     Socket.ReceiveBufferSize = 262140;
     Socket.SendBufferSize    = 262140;
 }
Exemple #2
0
 public Client(BridgeConnection parent)
 {
     Parent = parent;
     Socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
     Socket.ReceiveBufferSize = 262140;
     Socket.SendBufferSize    = 262140;
 }
Exemple #3
0
        public SWebClient(BridgeConnection parent)
        {
            Socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
            Bytes  = new List <byte>();

            Socket.ReceiveBufferSize = 262140;
            Socket.SendBufferSize    = 262140;
            Parent = parent;
        }
Exemple #4
0
        public SWebClient(BridgeConnection parent, string address)
        {
            Socket  = new Socket(SocketType.Stream, ProtocolType.Tcp);
            Bytes   = new List <byte>();
            Address = new Uri(address);

            Socket.Connect(Address.Host, Address.Port);
            Socket.ReceiveBufferSize = 262140;
            Socket.SendBufferSize    = 262140;
            Parent = parent;
        }