1 votes 1 votes Which of the following system calls not used in UDP echo server program? A) listen() B) socket() C) bind () D)recvfrom() Computer Networks sockets + – chandra sai asked Jul 19, 2017 chandra sai 3.9k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply joshi_nitish commented Jul 19, 2017 reply Follow Share A) LISTEN ??? 0 votes 0 votes Rupendra Choudhary commented Nov 12, 2017 reply Follow Share TCP echo client :- Socket() -->Connect() and then start sending and receiving messages. TCP echo server :-Socket()-->>bind()-->>listen()-->>accept() and now after connect() call from client , sending , receiving messages. UDP echo client :-Socket()-->>bind() and then sending and receiving messages. UDP echo server :-Socket()-->>bind() and then sending and receiving messages. http://www.cs.northwestern.edu/~agupta/_projects/networking/TCPClientServer/report.html 0 votes 0 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes The steps of establishing a UDP socket communication on the server side are as follows: Create a socket with the socket() function; Bind the socket to an address using the bind() function; Send and receive data by means of recvfrom() and sendto() http://www.cs.dartmouth.edu/~campbell/cs60/socketprogramming.html pawan kumarln answered Jul 19, 2017 selected Jul 19, 2017 by pawan kumarln pawan kumarln comment Share Follow See all 2 Comments See all 2 2 Comments reply chandra sai commented Jul 19, 2017 reply Follow Share what is echo server program(as per the question)? 0 votes 0 votes pawan kumarln commented Jul 20, 2017 reply Follow Share An echo server is usually an application which is used to test if the connection between a client and a server is successful. It consists of a server which sends back whatever text the client sent. 3 votes 3 votes Please log in or register to add a comment.
0 votes 0 votes Listen is not used in UDP as we donot need any synchronization and connection establishment in UDP. Akash Ghosh answered Sep 20, 2019 Akash Ghosh comment Share Follow See all 0 reply Please log in or register to add a comment.