Esempio n. 1
0
        /// <summary>
        /// May I have a new client front end with this name?
        /// </summary>
        /// <param name="name">The name of the client</param>
        public ClientFrontEnd(string name)
        {
            Contract.Requires(name != null && name != "server");
            this.name = name;

            // Specifies that this is a client
            this.udpMulticast = new UdpMulticast(1);
        }
Esempio n. 2
0
 /// <summary>
 /// May I have a new server front end?
 /// </summary>
 public ServerFrontEnd()
 {
     // Create a new udpMulticast as a server
     this.udpMulticast = new UdpMulticast(0);
     this.prevPackets = new Dictionary<string, Packet>();
 }