Most servers have ICMP echo (ping) turned off. It's best not to rely on ping / traceroute as there is no guarantee about their behavior.
Most servers have ICMP echo (ping) turned off. It's best not to rely on ping / traceroute as there is no guarantee about their behavior.
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
Running both tcp and udp is fine, but it sounds like you want a way to have a way to send reliable UDP packets and unreliable as well. It would be much simpler if you could stick with either tcp or udp for your connection.
I suggest checking out enet: enet, or UDP_Engine: Getting Started.
Both of these library offer reliable UDP transmission and even the code so you can take a look at how they are implemented.