TCP Stack and Socket API Shortcomings