add util codes to print sock name by calling getsockname() and peer sock name by calling getpeername()