Hey all,
I'm developing a program that uses UDP sockets, the main program code and its other interfaces are fine, and work 100% as intended. However, this is my first foray into working with UDP sockets, and i have a question or two.
As UDP is a connectionless protocol, if i create a socket, send a packet to a server, immediately store the socket object(created from a class) in a vector, would i be able to write a loop, which would keep checking for data until it received what was requested then close and delete the socket? (im not entirely sure if UDP sockets can send replies, and that the server would reply to the same socket).
If the above is possible, would i be able to use the non-blocking and select() commands like a standard sock_stream socket to check for when data has arrived? so that i dont have to "pause" the entire program to wait for a response?
Thats all i need for now. Thanks for your help![]()



2Likes
LinkBack URL
About LinkBacks





