Aura
Network Interface (network.asm)
_ServerPacketAvailable
- Inputs: None
- Outputs: EAX=1 iff packet ready to read
Checks the network (or AI) for an available server packet.
_GetServerPacket
- Inputs: None
- Outputs: None
Gets the server packet (warning: blocks if server packet not immediately
available!) and updates the player structures.
_PutClientPacket
- Inputs: None
- Outputs: EAX=-1 if error occurred, otherwise 0
Sends a packet to the server. Assumes _InitNetwork has been called.
_InitNetwork
- Inputs: ServerAddress=address of server (0=AI, -1=NetBIOS[?])
- Outputs: EAX=1 if error occurred, otherwise 0
Initializes the network and performs initial server connect.
_CloseNetwork
- Inputs: None
- Outputs: None
Deinitializes the network and frees any resources allocated.