I am working on a program that sends ARP requests, it basically asks all the ip's on a network what their mac adress is. So i need the program to wait for 100 miliseconds for a response, otherwise ask the next mac adress what its mac is.
-
dup stackoverflow.com/questions/2566073/…hit– hit2013-05-12 01:36:51 +00:00Commented May 12, 2013 at 1:36
-
Search engine is your good friend.prehistoricpenguin– prehistoricpenguin2013-05-12 01:44:52 +00:00Commented May 12, 2013 at 1:44
-
@AdamLiss it does not answer my question, i do not want it to sleep because if it sleeps, i will not listen to the ARP response (the device's mac adress), i am trying the select() function but i am not sure on how it works.blidt– blidt2013-05-12 01:45:02 +00:00Commented May 12, 2013 at 1:45
-
@ÁngelCáceresLicona So you may use another thread to watch events.prehistoricpenguin– prehistoricpenguin2013-05-12 01:46:32 +00:00Commented May 12, 2013 at 1:46
-
stackoverflow.com/search?q=use+select+to+waitAdam Liss– Adam Liss2013-05-12 01:51:17 +00:00Commented May 12, 2013 at 1:51
|
Show 4 more comments