code to create tcp socket
more additions to TCP portion
added select() handling
working tcp server