Re: [POSIX & Win32API] Getting the 'routing' informations



Rafael <devlists@xxxxxxxxxx> writes:

Hello Maciej, List

Maciej Piechotka escreveu:

PS. Sample pseudocode:

I can see the pseudo, but where is the code?


int test_socket (SOCKET s, struct sockaddr *sockaddr, socklen_t socklen)
{
/* ... */
}

You should return EXIT_FAILURE; here, or people will call your post
off-topic.

I have a binded datagram/packet socket. Is it possible to get an
information should I send a packet with given sockaddr through this
socket?

I'm Sorry Maciej, but your question... mmm... I can't pick a side. So
many ways to read this.


I'd like to have at most 2 codes - for BSD sockets and winsock2.

But ok... winsock2 and berkeley sockets are (kind) the same. You can
just use a couple ifdefs and you're fine.


I know. But I need some information how to access routing not basic
informations...

Regards
--
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)
.