コード例 #1
0
        public Server(ServerForm serverForm)
        {
            this.serverForm  = serverForm;
            client           = new UdpClient(port);
            multicastAddress = IPAddress.Parse("239.0.0.222");
            ipEndPoint       = new IPEndPoint(multicastAddress, 2222);

            client.JoinMulticastGroup(multicastAddress);
        }
コード例 #2
0
ファイル: Server.cs プロジェクト: RoganMelo/SocketMulticast
        public Server(ServerForm serverForm)
        {
            this.serverForm = serverForm;
            client = new UdpClient(port);
            multicastAddress = IPAddress.Parse("239.0.0.222");
            ipEndPoint = new IPEndPoint(multicastAddress, 2222);

            client.JoinMulticastGroup(multicastAddress);
        }