Beispiel #1
0
        public CFreeNetUnityService()
        {
            CPacketBufferManager.initialize(10);
            this.event_manager           = new CFreeNetEventManager();
            this.appcallback_on_message += Program.Process_Packet;

            thread = new System.Threading.Thread(() =>
            {
                while (true)
                {
                    Update();

                    System.Threading.Thread.Sleep(16);
                }
            });

            thread.Start();

            connect("127.0.0.1", 7979);
        }
Beispiel #2
0
 public void set_eventmanager(CFreeNetEventManager event_manager)
 {
     this.freenet_eventmanager = new WeakReference(event_manager);
 }