Exemplo n.º 1
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected until Connect is called
        /// </summary>
        /// <param name="port">the port to listen on</param>
        public OscSyncListener(int port)
        {
            OscReceiver = new OscReceiver(port);

            OscAddressManager.UnknownAddress += new EventHandler <UnknownAddressEventArgs>(OnUnknownAddress);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected until Connect is called
        /// </summary>
        /// <param name="port">the port to listen on</param>
        /// <param name="messageBufferSize">the number of messages that should be cached before messages get dropped</param>
        /// <param name="maxPacketSize">the maximum packet size of any message</param>
        public OscSyncListener(int port, int messageBufferSize, int maxPacketSize)
        {
            OscReceiver = new OscReceiver(port, messageBufferSize, maxPacketSize);

            OscAddressManager.UnknownAddress += new EventHandler <UnknownAddressEventArgs>(OnUnknownAddress);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected until Connect is called
        /// </summary>
        /// <param name="address">the local ip address to listen to</param>
        /// <param name="multicast">a multicast address to join</param>
        /// <param name="port">the port to listen on, use 0 for dynamically assigned</param>
        public OscSyncListener(IPAddress address, IPAddress multicast, int port)
        {
            OscReceiver = new OscReceiver(address, multicast, port);

            OscAddressManager.UnknownAddress += new EventHandler <UnknownAddressEventArgs>(OnUnknownAddress);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected until Connect is called
        /// </summary>
        /// <param name="address">the local ip address to listen to</param>
        /// <param name="multicast">a multicast address to join</param>
        /// <param name="port">the port to listen on, use 0 for dynamically assigned</param>
        public OscListener(IPAddress address, IPAddress multicast, int port)
        {
            OscReceiver = new OscReceiver(address, multicast, port);

            OscAddressManager.UnknownAddress += OnUnknownAddress;
        }
Exemplo n.º 5
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected until Connect is called
        /// </summary>
        /// <param name="address">the local ip address to listen to</param>
        /// <param name="port">the port to listen on, use 0 for dynamically assigned</param>
        /// <param name="messageBufferSize">the number of messages that should be cached before messages get dropped</param>
        /// <param name="maxPacketSize">the maximum packet size of any message</param>
        public OscListener(IPAddress address, int port, int messageBufferSize, int maxPacketSize)
        {
            OscReceiver = new OscReceiver(address, port, messageBufferSize, maxPacketSize);

            OscAddressManager.UnknownAddress += OnUnknownAddress;
        }
Exemplo n.º 6
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected until Connect is called
        /// </summary>
        /// <param name="port">the port to listen on</param>
        public OscListener(int port)
        {
            OscReceiver = new OscReceiver(port);

            OscAddressManager.UnknownAddress += OnUnknownAddress;
        }