Minor improvements tcp examples
Add poll support for tcp