示例#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());
        }
示例#2
0
文件: arp.cs 项目: jncronin/tysos
 public override bool InitServer()
 {
     _net = Syscalls.ProcessFunctions.GetNet() as INetInternal;
     net  = _net as net;
     return(_net.RegisterPacketHandler(0x0806, this).Sync());
 }