Hi Jorgander,
Yes it is true that you will get the remote address from the accept function. However, if I have 5 clients connect to one server port, how do I tell who is sending the server a message and who disconnected. Using the recv function, it only has the socket, buffer, and flags and...
WOW!!!!!!!!!!!!!!!
Well I understood the way you explained it but Microsoft doesnt make it that obvious.
THANKS A LOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hey Teriviret,
I have a question for you. How exactly do you use the select statement?? I know it is suppose to tell you the status of your sockets. But if I have 3 remote clients connecting to one server socket and when I run the select to find out which socket to read, it(being the select...
The socket parameters are of SOCK_STREAM. But isnt there a way to determine where you are recieving data from with this socket parameter?? I would think recvfrom would tell you the ip address that sent you packets.
Hello All,
The recvfrom function does not return the source address when using Microsoft Visual C/C++. I beleive I tried everything but nothing gives back a source address or a sockaddr*. Does anyone have any suggestions or samples of recvfrom working??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.