UDP socket - can both client and server recv and send

Hi,

Am very new to socket programming.
When we use UDP sockets to communicate between two processess,
will both the client/server socket be able to send/recv ?
meaning can sendto()/ recvfrom() be used on both server and client?
It could be useful even if anybody provide some link on socket programming in C.

Thanks

Yes, unless the socket has been closed from duplex operation, such as with shutdown().

For C socket programming resources, this is a popular one:
http://beej.us/guide/bgnet/output/html/multipage/index.html