Ejemplo n.º 1
0
 /// <summary>
 /// The first callback upon establishing a connection.  This method switches the next callback
 /// to ReceiveWebRequest and then requests data from the connection.
 /// </summary>
 protected void HandshakeCallback(NetworkState state)
 {
     Network.Send(state.Socket, handshakeString, SafeCallback);
     state.CallBack = ReceiveWebRequest;
     Network.RequestMoreData(state);
     Console.WriteLine("A new web browser has contacted the server.");
 }