Getting the port numbers and IP address from struct socket

From: Cliffe
Date: Mon Mar 16 2009 - 09:25:50 EST


Hi,

This may be a simple question, but how do I determine the port numbers, and IP addresses from a (struct socket)socket?

I appreciate any advice. Thank you,

Cliffe.
--


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/