windows xp - How to get socket information previously passed to a bind() call? -
winsock 2, windows xp sp3.
i have socket, passed bind() function, want information socket. more specifically, want port number socket bound to. have socket instance.
how go doing this? socket udp way.
my purpose want create new raw udp socket , build ip header , udp header , tunnel information through raw socket instead, don't know put source port because don't know bound to.
getsockname()
should you.
Comments
Post a Comment