How to know through which network interface ip address is pinged?

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

I am progrmmatically pininging ip address using c++ in windows.

I used the code from this link for pinging Ping for Windows

I am receiving reply from this function

WSAAPI
recvfrom(
SOCKET s,
char FAR * buf,
int len,
int flags,
struct sockaddr FAR * from,
int FAR * fromlen
);

From this function, How to know through which network interface I am receiving the reply or able to ping?


Thanks.

Continue reading...
 
Back
Top