Hạnh Nguyễn
Member
Does UDP use sockets?
Answer
UDP is connectionless. A server can immediately listen for messages once it has a socket. We use the recvfrom system call to wait for an incoming datagram on a specific transport address (IP address and port number). The first parameter, socket is a socket that we created ahead of time (and used bind.
Answer
UDP is connectionless. A server can immediately listen for messages once it has a socket. We use the recvfrom system call to wait for an incoming datagram on a specific transport address (IP address and port number). The first parameter, socket is a socket that we created ahead of time (and used bind.