Exemple #1
0
        public Client(IPAddress address, ushort port, bool udpBackend = false)
        {
            NetstClientBackend backend;

            Outgoing = true;

            if (udpBackend)
            {
                backend = new UdpClientBackend(address, port);
            }
            else
            {
                backend = new TcpClientBackend(address, port);
            }

            Backend = backend;
        }
Exemple #2
0
 // Constructor
 public Client(NetstClientBackend backend)
 {
     Outgoing = false;
     Backend  = backend;
 }