From 4a8e1c0e43f7c70d84d1f0b850e66a32c00a47b8 Mon Sep 17 00:00:00 2001 From: sc Date: Wed, 29 Nov 2000 12:46:27 +0000 Subject: Chose a consistent convention for INET addresses: they are stored in objects in 'network' representation, and manipulated outside object in 'host' representation. The corresponding calls to hton{sl} and ntoh{sl} have been added --- comm/InetAddress.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comm/InetAddress.h') diff --git a/comm/InetAddress.h b/comm/InetAddress.h index eec1490..9a9f842 100644 --- a/comm/InetAddress.h +++ b/comm/InetAddress.h @@ -37,8 +37,8 @@ public: int Family (); int Length (); SockAddr* GetSockAddr (); -inline sword Port () { return Addr.sin_port; } -inline lword Host () { return Addr.sin_addr.s_addr; } + sword Port (); + lword Host (); char* StrRepr (char* buf = 0); const char* GetHostName (); -- cgit v1.1