NicEntry is used by ConnectionManager to store the necessary information for each nic. More...
#include <NicEntryDirect.h>
Inherits NicEntry.
Public Member Functions | |
NicEntryDirect (bool debug) | |
Constructor, initializes all members. | |
virtual | ~NicEntryDirect () |
Destructor -- needs to be there... | |
virtual void | connectTo (NicEntry *) |
Connect two nics. | |
virtual void | disconnectFrom (NicEntry *) |
Disconnect two nics. |
NicEntry is used by ConnectionManager to store the necessary information for each nic.
Definition at line 36 of file NicEntryDirect.h.
void NicEntryDirect::connectTo | ( | NicEntry * | other | ) | [virtual] |
Connect two nics.
Establish unidirectional connection with other nic
other | reference to remote nic (other NicEntry) |
This function acquires an in gate at the remote nic and an out gate at this nic, connects the two and updates the freeInGate, freeOutGate and outConns data sets.
Implements NicEntry.
Definition at line 32 of file NicEntryDirect.cc.
References NicEntry::nicId, NicEntry::nicPtr, and NicEntry::outConns.
void NicEntryDirect::disconnectFrom | ( | NicEntry * | other | ) | [virtual] |
Disconnect two nics.
Release unidirectional connection with other nic
other | reference to remote nic (other NicEntry) |
Implements NicEntry.
Definition at line 46 of file NicEntryDirect.cc.
References NicEntry::nicId, and NicEntry::outConns.