I have written a program that routes different types of packets and sends them to differnet clients depending on a config file.

However i have a problem. For some reason after 192 packets (it is always 192) sendto gets an error when it tries to send so the client no longer recieves the packets. What could be some possible problems and what would be the best way to track this problem down. The program is written in C

Thanks
Jason