예제 #1
0
파일: VRProxy.cs 프로젝트: k4b/VRFSClient
 public MessageReply receiveReply()
 {
     isListening = true;
     MessageReply reply = null;
     //while (isListening)
     {
         var messageID = BitConverter.ToInt32(clientSocket.Recv(), 0);
         var viewNumber = BitConverter.ToInt32(clientSocket.Recv(), 0);
         var requestNumber = BitConverter.ToInt32(clientSocket.Recv(), 0);
         var result = BitConverter.ToBoolean(clientSocket.Recv(), 0);
         reply = new MessageReply(messageID, viewNumber, requestNumber, result);
     }
     return reply;
 }
예제 #2
0
 public void processMessage(MessageReply reply)
 {
     Console.WriteLine("Received:");
     Console.WriteLine(reply.ToString());
 }