Beispiel #1
0
        private void GracefullyDisconnectInboundSocket(ZmqInboundSocket inboundSocket)
        {
            inboundSocket.Disconnect();

            CodedInputStream inputStream;

            while ((inputStream = inboundSocket.Receive(100.Milliseconds())) != null)
            {
                DeserializeAndForwardTransportMessage(inputStream);
            }
        }
Beispiel #2
0
        private void GracefullyDisconnectInboundSocket(ZmqInboundSocket inboundSocket)
        {
            inboundSocket.Disconnect();

            ProtoBufferReader?bufferReader;

            while ((bufferReader = inboundSocket.Receive(100.Milliseconds())) != null)
            {
                DeserializeAndForwardTransportMessage(bufferReader);
            }
        }