コード例 #1
0
        public OscUdpServer(OscEndpoint endpoint)
        {
            this.Endpoint = endpoint;
            this.socket   = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

            socket.Bind(
                this.Endpoint.CreateIpEndpoint()
                );
        }
コード例 #2
0
        public OscUdpClient(OscEndpoint endpoint, bool connect)
        {
            this.Endpoint = endpoint;
            this.socket   = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

            if (connect)
            {
                Connect();
            }
        }
コード例 #3
0
 public OscUdpClient(OscEndpoint endpoint)
     : this(endpoint, false)
 {
 }