Exemplo n.º 1
0
        public static UnityPharusListener NewUnityPharusListenerTCP(string remoteServerIpAddress, int localPort)
        {
            UnityPharusListener listener = new UnityPharusListener();

            listener.m_useUDP    = false;
            listener.m_ipAddress = remoteServerIpAddress;
            listener.m_port      = localPort;
            listener.InitTracking();
            return(listener);
        }
Exemplo n.º 2
0
        public static UnityPharusListener NewUnityPharusListenerUDP(string remoteMulticastIpAdress, int localPort)
        {
            UnityPharusListener listener = new UnityPharusListener();

            listener.m_useUDP    = true;
            listener.m_ipAddress = remoteMulticastIpAdress;
            listener.m_port      = localPort;
            listener.InitTracking();
            return(listener);
        }