Hi, thanks for providing this great networking lib.
I am trying to convert the Bridge example to a language called ‘Purebasic’. It’s a procedural language and produces very fast code. I am using the dll C style.
I have a dual 10G intel pcie adapter adapter installed and 2 Mikrotik routers, 1 connected to each port. One router is a DHCP server, the other a DHCP Client. My application has 2 threads, 1 for each network interface port.
My problem is, i dont understand anything from the C++ example, i should have learnt C++ years ago. The DHCP Client does get an ip address sometimes but it takes a long time when it does get one. Pings timeout.
At the moment, i am reading a packet and when PACKET_FLAG_ON_RECEIVE is triggered, i copy the packet and send it to the other adapter. The second thread does the same this for the other nic port. The packets are not destined for the PC the app is running on. Can you give me any clues to where i am going wrong? Or can you give me a basic flow of what i should be doing? Do i need to change change the mac address of the packets?
Sorry for the amount of questions.