udp communication is performed in similar mannerexcept that clients and servers don' establish "connectionwith each otheras shown in figure server client socket(socket(bind(bind(recvfrom(wait for data request sendto(process request response sendto(figure recvfrom(udp connection protocol the following example illustrates the tcp protocol with client and server written using the socket module in this casethe server simply returns the current time to the client as string time server program from socket import import time socket(af_inetsock_streams bind(('', ) listen( create tcp socket bind to port listenbut allow no more than pending connections while trueclient,addr accept(get connection print("got connection from %sstr(addr)timestr time ctime(time time()"\ \nclient send(timestr encode('ascii')client close(here' the client programtime client program from socket import socket(af_inet,sock_streamcreate tcp socket connect(('localhost' )connect to the server tm recv( receive no more than bytes close(print("the time is %stm decode('ascii') lib fl ff