コード例 #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());
 }