3,929 views
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()

2 Answers

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

selected by
0 votes
0 votes
Listen is not used in UDP as we donot need any synchronization and  connection establishment in UDP.

Related questions

27 votes
27 votes
4 answers
4