Client-Server implementation in C for persistent connection and high throughput