コード例 #1
0
ファイル: ClientFrontEnd.cs プロジェクト: dirtylion/smalltuba
        /// <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);
        }
コード例 #2
0
ファイル: ServerFrontEnd.cs プロジェクト: dirtylion/smalltuba
 /// <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>();
 }