Ejemplo n.º 1
0
        private void ethernet_NetworkUp(GTM.Module.NetworkModule sender, GTM.Module.NetworkModule.NetworkState state)
        {
            Debug.Print("Network Up!");

            txtAddress.TextContent = "IP Address: " + ethernet.NetworkSettings.IPAddress + ", port 8080";

            SocketServer server = new SocketServer(8080);
            server.DataReceived += new DataReceivedEventHandler(server_DataReceived);
            server.Start();
        }
 public ProcessClientRequest(SocketServer socket, Socket clientSocket)
 {
     this.socket = socket;
     this.clientSocket = clientSocket;
 }