Adding various socket changes for TCP and UDP