Пример #1
0
 public privateConversation(string withWho, ClientMW clientMW, NetworkServices netServ)
 {
     this.withWho  = withWho;
     this.clientMW = clientMW;
     this.netServ  = netServ;
     InitializeComponent();
     appendText("Private conversation with " + withWho + ".");
 }
Пример #2
0
 public privateConversation(string withWho, ClientMW clientMW, NetworkServices netServ)
 {
     this.withWho = withWho;
     this.clientMW = clientMW;
     this.netServ = netServ;
     InitializeComponent();
     appendText("Private conversation with " + withWho + ".");
 }
Пример #3
0
 public NetworkServices(ClientMW clientMW)
 {
     this.clientMW = clientMW;
     m_clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     IPAddress[] ipAddress = Dns.GetHostAddresses("127.0.0.1");
     IPEndPoint ipEnd = new IPEndPoint(ipAddress[0], 8221);
     m_clientSocket.Connect(ipEnd);
     if (m_clientSocket.Connected)
     {
         clientMW._connected = true;
         WaitForData();
     }
 }
Пример #4
0
        public NetworkServices(ClientMW clientMW)
        {
            this.clientMW  = clientMW;
            m_clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            IPAddress[] ipAddress = Dns.GetHostAddresses("127.0.0.1");
            IPEndPoint  ipEnd     = new IPEndPoint(ipAddress[0], 8221);

            m_clientSocket.Connect(ipEnd);
            if (m_clientSocket.Connected)
            {
                clientMW._connected = true;
                WaitForData();
            }
        }
Пример #5
0
 public fileTransferProtocol(ClientMW clientMW)
 {
     this.clientMW = clientMW;
 }
Пример #6
0
 public fileTransferProtocol(ClientMW clientMW)
 {
     this.clientMW = clientMW;
 }