Main Page   Compound List   File List   Compound Members   File Members  

post.cc File Reference

#include "copyright.h"
#include "post.h"

Go to the source code of this file.

Functions

int bcopy (char *, char *, int)
void PrintHeader (PacketHeader pktHdr, MailHeader mailHdr)
void PostalHelper (int arg)
void ReadAvail (int arg)
void WriteDone (int arg)


Function Documentation

int bcopy char *   ,
char *   ,
int   
 

Referenced by Network::CheckPktAvail, MailBox::Get, Mail::Mail, OpenFile::ReadAt, Network::Receive, PostOffice::Send, Network::Send, and OpenFile::WriteAt.

void PostalHelper int    arg [static]
 

Definition at line 152 of file post.cc.

References PostOffice::PostalDelivery.

Referenced by PostOffice::PostOffice.

00153 { PostOffice* po = (PostOffice *) arg; po->PostalDelivery(); }

void PrintHeader PacketHeader    pktHdr,
MailHeader    mailHdr
[static]
 

Definition at line 82 of file post.cc.

References MailHeader::from, PacketHeader::from, MailHeader::length, MailHeader::to, and PacketHeader::to.

Referenced by MailBox::Get, PostOffice::PostalDelivery, and PostOffice::Send.

00083 {
00084     printf("From (%d, %d) to (%d, %d) bytes %d\n",
00085             pktHdr.from, mailHdr.from, pktHdr.to, mailHdr.to, mailHdr.length);
00086 }

void ReadAvail int    arg [static]
 

Definition at line 154 of file post.cc.

References PostOffice::IncomingPacket.

Referenced by PostOffice::PostOffice.

00155 { PostOffice* po = (PostOffice *) arg; po->IncomingPacket(); }

void WriteDone int    arg [static]
 

Definition at line 156 of file post.cc.

References PostOffice::PacketSent.

Referenced by PostOffice::PostOffice.

00157 { PostOffice* po = (PostOffice *) arg; po->PacketSent(); }


Generated on Mon Feb 10 09:54:51 2003 for nachos by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees