Ejemplo n.º 1
0
 public MulticastUdpConnection(NetworkEventLoop eventLoop, INode binding, INode multicastAddress,
     TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator)
     : base(eventLoop, binding, timeout, encoder, decoder, allocator)
 {
     MulticastAddress = multicastAddress;
     InitMulticastClient();
 }
Ejemplo n.º 2
0
 public MulticastUdpConnection(NetworkEventLoop eventLoop, INode binding, INode multicastAddress,
     IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator)
     : this(
         eventLoop, binding, multicastAddress, NetworkConstants.DefaultConnectivityTimeout, encoder, decoder,
         allocator)
 {
 }
Ejemplo n.º 3
0
 protected UnstreamedConnectionBase(NetworkEventLoop eventLoop, INode binding, IMessageEncoder encoder,
     IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : this(
         eventLoop, binding, NetworkConstants.DefaultConnectivityTimeout, encoder, decoder, allocator, bufferSize
         )
 {
 }
Ejemplo n.º 4
0
 protected UnstreamedConnectionBase(NetworkEventLoop eventLoop, INode binding, TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : base()
 {
     Decoder = decoder;
     Encoder = encoder;
     Allocator = allocator;
     Created = DateTimeOffset.UtcNow;
     Binding = binding;
     Timeout = timeout;
     BufferSize = bufferSize;
     NetworkEventLoop = eventLoop;
 }
Ejemplo n.º 5
0
 public UdpConnection(NetworkEventLoop eventLoop, INode binding, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator)
     : base(eventLoop, binding, encoder, decoder, allocator)
 {
     InitClient();
 }
Ejemplo n.º 6
0
 protected UnstreamedConnectionBase(NetworkEventLoop eventLoop, INode binding, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE) : this(eventLoop, binding, NetworkConstants.DefaultConnectivityTimeout, encoder, decoder, allocator, bufferSize)
 {
 }
Ejemplo n.º 7
0
 public TcpReactorResponseChannel(ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : base(reactor, outboundSocket, endPoint, eventLoop)
 {
 }
Ejemplo n.º 8
0
 protected ReactorResponseChannel(ReactorBase reactor, Socket outboundSocket, NetworkEventLoop eventLoop)
     : this(reactor, outboundSocket, (IPEndPoint)outboundSocket.RemoteEndPoint, eventLoop)
 {
 }
Ejemplo n.º 9
0
 public TcpSingleEventLoopProxyReactor(IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : base(localAddress, localPort, eventLoop, encoder, decoder, allocator, bufferSize)
 {
 }
Ejemplo n.º 10
0
 public TcpProxyReactor(IPAddress localAddress, int localPort, NetworkEventLoop eventLoop, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : base(localAddress, localPort, eventLoop, encoder, decoder, allocator, SocketType.Stream, ProtocolType.Tcp, bufferSize)
 {
     LocalEndpoint = new IPEndPoint(localAddress, localPort);
     Listener      = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
 }
Ejemplo n.º 11
0
 public ReactorProxyResponseChannel(ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop)
     : base(reactor, outboundSocket, endPoint, eventLoop)
 {
 }
Ejemplo n.º 12
0
 public MulticastUdpConnection(NetworkEventLoop eventLoop, INode binding, INode multicastAddress, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator)
     : this(eventLoop, binding, multicastAddress, NetworkConstants.DefaultConnectivityTimeout, encoder, decoder, allocator)
 {
 }
Ejemplo n.º 13
0
 public MulticastUdpConnection(NetworkEventLoop eventLoop, INode binding, INode multicastAddress, TimeSpan timeout, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator)
     : base(eventLoop, binding, timeout, encoder, decoder, allocator)
 {
     MulticastAddress = multicastAddress;
     InitMulticastClient();
 }
Ejemplo n.º 14
0
 public TcpConnection(NetworkEventLoop eventLoop, INode node, IMessageEncoder encoder, IMessageDecoder decoder,
                      IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : base(eventLoop, node, encoder, decoder, allocator, bufferSize)
 {
     InitClient();
 }
Ejemplo n.º 15
0
 protected ReactorResponseChannel(ReactorBase reactor, Socket outboundSocket, IPEndPoint endPoint, NetworkEventLoop eventLoop)
 {
     _reactor         = reactor;
     Socket           = outboundSocket;
     Decoder          = _reactor.Decoder.Clone();
     Encoder          = _reactor.Encoder.Clone();
     Allocator        = _reactor.Allocator;
     Local            = reactor.LocalEndpoint.ToNode(reactor.Transport);
     RemoteHost       = NodeBuilder.FromEndpoint(endPoint);
     NetworkEventLoop = eventLoop;
 }
Ejemplo n.º 16
0
 public UdpConnection(NetworkEventLoop eventLoop, INode binding, IMessageEncoder encoder, IMessageDecoder decoder,
     IByteBufAllocator allocator)
     : base(eventLoop, binding, encoder, decoder, allocator)
 {
     InitClient();
 }
Ejemplo n.º 17
0
 public TcpConnection(NetworkEventLoop eventLoop, INode node, IMessageEncoder encoder, IMessageDecoder decoder, IByteBufAllocator allocator, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : base(eventLoop, node, encoder, decoder, allocator, bufferSize)
 {
     InitClient();
 }
Ejemplo n.º 18
0
 public TcpReactorResponseChannel(ReactorBase reactor, Socket outboundSocket, NetworkEventLoop eventLoop, int bufferSize = NetworkConstants.DEFAULT_BUFFER_SIZE)
     : this(reactor, outboundSocket, (IPEndPoint)outboundSocket.RemoteEndPoint, eventLoop, bufferSize)
 {
 }