Unfortunately, I still have trouble making it work...
Im am sorry, but I am not the most experienced socket programmer.
Could you provide slightly more detail?
I really appreciate the help, and I am sorry for being awkward.
All the best
/Sagi
User Profile
Collapse
-
Sagittarius replied to Extracting the responding IP adress from a Broadcast transmission (over UDP socket)in CIn addition to my question above, I would also like to know, if there is a C++ command or function that will return the machines local IP and Subnet.
Thanks in advance.
/SagiLeave a comment:
-
Sagittarius started a topic Extracting the responding IP adress from a Broadcast transmission (over UDP socket)in CExtracting the responding IP adress from a Broadcast transmission (over UDP socket)
Hi there.
I have a problem concerning an UDP socket in C++ (Winsock).
The next paragraphs is merely to explain the system I am working on. If U want to skip it, I have marked the question in bold below it.
I have a pc, connected to a network of boards, all connected in a ring, all having their own unique IP adresses.
As it is now, I send messages to the network of boards via broadcast, so all the... -
Thank you so much for your help :)
Everything works now.
It is really appreciated.
All the best regards
/SagiLeave a comment:
-
Thanks a lot buddy - it makes perfect sense :) The functionallity of select and poll was just what I was looking for.
I have chosen to use select().
However I am stuck with a new problem now - I cant figure out how I am supposed to call select()
I have found various examples on the web, and very good descriptions, but I just cant make it compile.
The arguments for Select are(as far as I...Leave a comment:
-
UDP socket - how to make a timer and how to handle packet loss
I will first try to describe my problem in words.
I have a simple program, written in C++, that needs to send a single bytearray via a UDP socket to a microprocessor, which returns an answer, also via UDP.
Everything works just fine - exept when packet loss occurs (or nothing is recieved at the recieving socket).
If packet loss occurs, the program locks up, and it needs to be restarted!
...
No activity results to display
Show More
Leave a comment: