#include <post.h>
Inheritance diagram for PostOfficeOutput::

Public Methods | |
| PostOfficeOutput (double reliability, int nBoxes) | |
| Allocate and initialize output "reliability" is how many packets get dropped by the underlying network "nBoxes" is # of mailboxes on remote side. More... | |
| ~PostOfficeOutput () | |
| De-allocate Post Office data. More... | |
| void | Send (PacketHeader pktHdr, MailHeader mailHdr, char *data) |
| Send a message to a mailbox on a remote machine. The fromBox in the MailHeader is the return box for ack's. More... | |
| void | CallBack () |
| Called when outgoing packet has been put on network; next packet can now be sent. More... | |
Private Attributes | |
| NetworkOutput* | network |
| Physical network connection. More... | |
| Semaphore* | messageSent |
| V'ed when next message can be sent to network. More... | |
| Lock* | sendLock |
| Only one outgoing message at a time. More... | |
| int | numBoxes |
| Number of mail boxes on *remote* side. More... | |
Definition at line 132 of file post.h.
|
|
Allocate and initialize output "reliability" is how many packets get dropped by the underlying network "nBoxes" is # of mailboxes on remote side. PostOfficeOutput::PostOfficeOutput Initialize the post office output queue. "reliability" is the probability that a network packet will be delivered (e.g., reliability = 1 means the network never drops any packets; reliability = 0 means the network never delivers any packets) "nBoxes" is the number of mail boxes in this Post Office |
|
|
De-allocate Post Office data. PostOfficeOutput::~PostOfficeOutput De-allocate the post office data structures. |
|
|
Called when outgoing packet has been put on network; next packet can now be sent. PostOfficeOutput::CallBack Interrupt handler, called when the next packet can be put onto the network. Called even if the previous packet was dropped. Reimplemented from CallBackObj. |
|
|
Send a message to a mailbox on a remote machine. The fromBox in the MailHeader is the return box for ack's. PostOfficeOutput::Send Concatenate the MailHeader to the front of the data, and pass the result to the Network for delivery to the destination machine. Note that the MailHeader + data looks just like normal payload data to the Network. "pktHdr" -- source, destination machine ID's "mailHdr" -- source, destination mailbox ID's "data" -- payload message data Definition at line 314 of file post.cc. Referenced by NetKernel::SelfTest().
|
|
|
V'ed when next message can be sent to network.
|
|
|
Physical network connection.
|
|
|
Number of mail boxes on *remote* side.
|
|
|
Only one outgoing message at a time.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001