[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Addressing scheme in NS



Yes. You got it right.
ns_addr_t is a struct of nsaddr_t and int32_t.

Chalermek

On Fri, 21 Jan 2000, Shuqian Yan wrote:

> Hello,
> 
> Can somone explain the new addressing scheme used in the latest version
> of ns? for example in ip.h, the following have been defined, 
> 
> 	ns_addr_t& src() { return (src_); }
>         nsaddr_t& saddr() { return (src_.addr_); }
>         int32_t& sport() { return src_.port_;}
> 
> does ns_addr_t& src() { return (src_); } define both the node and port
> address for the src???
> 
> does nsaddr_t& saddr() { return (src_.addr_); } define only the node
> address?
> 
> does int32_t& sport() { return src_.port_;} define the port address on the
> node??
> 
> tks.
> 
> shuqian 
> 
>