tac0S
Template Affectional Command Operating System
Classes | Macros | Typedefs
network.h File Reference

structures to emulate a physical network connection. More...

#include "copyright.h"
#include "utility.h"

Go to the source code of this file.

Classes

class  PacketHeader
 The following class defines the network packet header. The packet header is prepended to the data payload by the Network driver, before the packet is sent over the wire. The format on the wire is: packet header (PacketHeader) data (containing MailHeader from the PostOffice!) More...
 
class  Network
 

Macros

#define MaxWireSize   64
 
#define MaxPacketSize   (MaxWireSize - sizeof(struct PacketHeader))
 

Typedefs

typedef int NetworkAddress
 Network address – uniquely identifies a machine. This machine's ID is given on the command line.
 

Detailed Description

structures to emulate a physical network connection.

Author
Olivier Hureau, Hugo Feydel , Julien ALaimo network.h Data structures to emulate a physical network connection. The network provides the abstraction of ordered, unreliable, fixed-size packet delivery to other machines on the network.

You may note that the interface to the network is similar to the console device – both are full duplex channels.

DO NOT CHANGE – part of the machine emulation

Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.