Example #1
0
        public BroadcastClient(IpEndpoint localEndpoint, int targetPort, byte connectionId, ITrace trace)
        {
            _listenerBase = new ListenerBase(localEndpoint, trace);
            _listenerBase.MessageReceived += MessageReceived;
            var broadcastClient = _listenerBase.Listener.ForkSendTo(new IpEndpoint(new IpAddress("255.255.255.255"), targetPort));

            Connection = new UnreliableUnorderedConnection(broadcastClient, connectionId, trace);
        }
Example #2
0
 public Server(ServerConfiguration serverConfiguration, ITrace trace)
 {
     _trace        = trace;
     _listenerBase = new ListenerBase(serverConfiguration.IpEndpoint, trace);
     _listenerBase.MessageReceived += MessageReceived;
 }