Ejemplo n.º 1
0
        public override bool InitServer()
        {
            _net = Syscalls.ProcessFunctions.GetNet() as INetInternal;
            net  = _net as net;
            var ret = _net.RegisterPacketHandler(0x0800, this);


            /* Start protocol handlers */
            icmp = new icmp(this);
            tysos.Process p_icmp = tysos.Process.CreateProcess("icmp",
                                                               new System.Threading.ThreadStart(icmp.MessageLoop),
                                                               new object[] { icmp });
            p_icmp.Start();

            return(ret.Sync());
        }
Ejemplo n.º 2
0
 public override bool InitServer()
 {
     _net = Syscalls.ProcessFunctions.GetNet() as INetInternal;
     net  = _net as net;
     return(_net.RegisterPacketHandler(0x0806, this).Sync());
 }