$binary_remote_addr byte order (big-endian guaranteed?)
mdounin at mdounin.ru
Fri Nov 5 15:12:11 MSK 2010
On Fri, Nov 05, 2010 at 04:06:44AM -0400, helen wrote:
> In what format is $binary_remote_addr? Test shows network byte order
> (big-endian), but is that guaranteed?
It's remote address as returned by accept(), either s_addr for
ipv4 or s6_addr for ipv6. Both are guaranteed to be in network
byte order. Value for unix socket connections is unspecified.
> English wiki doesn't say, and my Russian leaves much to be desired.
Use the Source, Luke! ;)
More information about the nginx