Added code examples for TCP