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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -