[POSIX & Win32API] Getting the 'routing' informations



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'd like to have at most 2 codes - for BSD sockets and winsock2.

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

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/)

.



Relevant Pages