Added more TCP functionality

Added more TCP functionality