Beispiel #1
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected untill 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 OscListener(int port, int messageBufferSize, int maxPacketSize)
        {
            m_Receiver = new OscReceiver(port, messageBufferSize, maxPacketSize);

            m_Listener.UnknownAddress += new EventHandler <UnknownAddressEventArgs>(OnUnknownAddress);
        }
Beispiel #2
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected untill Connect is called
        /// </summary>
        /// <param name="port">the port to listen on</param>
        public OscListener(int port)
        {
            m_Receiver = new OscReceiver(port);

            m_Listener.UnknownAddress += new EventHandler <UnknownAddressEventArgs>(OnUnknownAddress);
        }
Beispiel #3
0
        /// <summary>
        /// Create a new Osc UDP listener. Note the underlying socket will not be connected untill 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)
        {
            m_Receiver = new OscReceiver(address, multicast, port);

            m_Listener.UnknownAddress += new EventHandler <UnknownAddressEventArgs>(OnUnknownAddress);
        }