Pardon if this question has been answered but I couldn't find it.
I'm kinda confused about recv()
and recvfrom()
. Once the server binds the address (or accepts connection for TCP), recv()
is called. Does recv()
constantly check for messages that has been sent or does it wait until a message is received? If it does wait, how long is the wait time?
Not sure if I'm making sense, but if someone could enlighten me, I'd be grateful.