Implement native TCP I/O