protected OpenAsyncResult(AmqpStream parent, string address, bool listen, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) { this.parent = parent; this.parent.isReceiver = listen; this.timeoutHelper = new TimeoutHelper(timeout); Uri addressUri = new Uri(address); this.parent.node = addressUri.PathAndQuery; int port = addressUri.Port; if (port == -1) { port = AmqpConstants.DefaultPort; } TcpTransportSettings tcpSettings = new TcpTransportSettings(); tcpSettings.TcpBacklog = 20; tcpSettings.TcpBufferSize = 4096; tcpSettings.SetEndPoint(addressUri.Host, port, listen); TransportSettings transportSettings = tcpSettings; this.Start(transportSettings); }
public AmqpFrameConnection(AmqpStream parent, TransportBase transport, int maxFrameSize) : base(transport, new AmqpConnectionSettings() { MaxFrameSize = (uint)maxFrameSize }) { this.parent = parent; this.decoder = new FrameDecoder(maxFrameSize); }
public OpenReceiverAsyncResult(AmqpStream parent, string address, TimeSpan timeout, AsyncCallback callback, object state) : base(parent, address, true, timeout, callback, state) { }