Esempio n. 1
0
 public NetMQSocket GetSocket(ServerSocketType type)
 {
     while (!_mutex.WaitOne())
     {
         Thread.Sleep(50);
     }
     _socket.Send(BitConverter.GetBytes((int)type), sizeof(int));
     return(_socket);
 }
Esempio n. 2
0
 public ServerSocket(ServerSocketType socketType)
 {
     mSocketType = socketType;
 }
Esempio n. 3
0
 public ServerSocket()
 {
     mSocketType = ServerSocketType.ClientServer;
 }