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

Re: Role of recv??



On Fri, 6 Nov 1998, Uvaiz Ahmed wrote:

> Hi
> 
> I have started reading the ns notes and documentation and have ended up
> reading a whole lot of code. Can anyone please help me with the
> following
> 
> 1. the recv method seems to be a key method in the implementation of NS.
> 
> If i am rite what exactly is its role.

recv is a generic method used by all objects deriving from NsObjects to
receive packet. recv is defined , actually its a place
holder in NsObject. It is really defined by the individual sub-classes. 


> 
> 2. In the Queue.cc there is a variable called target_ which is not
> defined ( probably a global ?) what does it refer to? It is present in
> the Queue::resume function.
> 

so Connector objects have a variable target_ defined for
the object to which it hands down a packet to.so all pkts recv'd by the
object and having been processed is handed down to this target_.
Queue being a subclass of Connector inherits the variable.

Hope this helps,
--Padma.

> Any help is appreciated
> 
> ----------------------------------------------------------------------
> 
> Uvaiz Ahmed
> MEng. Dept of Systems and Comp. Eng
> Tel: 520-2600 extn 2913(off)
>      728-6691 ( res)
> 
> "Do not know the truth by the men, but know the truth, and then you will
> 
> know who are truthful"--- Hazrat Ali
> -----------------------------------------------------------------------
> 
> 
> 
> 

------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau

Padmaparna Haldar
ISI/USC.
310.822.1511 #352