protected override void OnLoad(EventArgs e) { F12018UdpSocket c = new F12018UdpSocket(); c.Server("192.168.0.11", 20777); F12018UDPMgr.Instance.F1PacketHeaderDataReceived += Instance_F1PacketHeaderDataReceived; //F12018UDPMgr.Instance.F1CarMotionDataReceived += Instance_F1CarMotionDataReceived; //F12018UDPMgr.Instance.F1PacketMotionDataReceived += Instance_F1PacketMotionDataReceived; //F12018UDPMgr.Instance.F1PacketSessionDataReceived += Instance_F1PacketSessionDataReceived; //F12018UDPMgr.Instance.F1LapDataReceived += Instance_F1LapDataReceived; //F12018UDPMgr.Instance.F1ParticipantDataReceived += Instance_F1ParticipantDataReceived; //F12018UDPMgr.Instance.F1CarSetupDataReceived += Instance_F1CarSetupDataReceived; //F12018UDPMgr.Instance.F1CarStatusDataReceived += Instance_F1CarStatusDataReceived; base.OnLoad(e); }
static void Main(string[] args) { F12018UdpSocket c = new F12018UdpSocket(); c.Server("192.168.0.11", 20777); //c.Send("TEST!"); //F12018UDPMgr.Instance.F1CarMotionDataReceived += Instance_F1CarMotionDataReceived; F12018UDPMgr.Instance.F1PacketMotionDataReceived += Instance_F1PacketMotionDataReceived; //F12018UDPMgr.Instance.F1PacketSessionDataReceived += Instance_F1PacketSessionDataReceived; //F12018UDPMgr.Instance.F1LapDataReceived += Instance_F1LapDataReceived; //F12018UDPMgr.Instance.F1ParticipantDataReceived += Instance_F1ParticipantDataReceived; //F12018UDPMgr.Instance.F1CarSetupDataReceived += Instance_F1CarSetupDataReceived; //F12018UDPMgr.Instance.F1CarStatusDataReceived += Instance_F1CarStatusDataReceived; Console.ReadKey(); }