#include <NetworkInterface.h>
Inherits SubsystemInterface.
Inherited by Network.
Public Member Functions | |
| virtual | ~NetworkInterface () |
| virtual void | init (void)=0 |
| Initialize the network. | |
| virtual void | reset (void)=0 |
| Re-initialize the network. | |
| virtual void | update (void)=0 |
| Updates the network. | |
| virtual void | liteupdate (void)=0 |
| does a lightweight update for passing messages around. | |
| virtual void | setLocalAddress (UnsignedInt ip, UnsignedInt port)=0 |
| Tell the network what local ip and port to bind to. | |
| virtual Bool | isFrameDataReady (void)=0 |
| Are the commands for the next frame available? | |
| virtual void | parseUserList (const GameInfo *game)=0 |
| Parse a userlist, creating connections. | |
| virtual void | startGame (void)=0 |
| Sets the network game frame counter to -1. | |
| virtual UnsignedInt | getRunAhead (void)=0 |
| Get the current RunAhead value. | |
| virtual UnsignedInt | getFrameRate (void)=0 |
| Get the current allowed frame rate. | |
| virtual UnsignedInt | getPacketArrivalCushion (void)=0 |
| Get the smallest packet arrival cushion since this was last called. | |
| virtual void | sendChat (UnicodeString text, Int playerMask)=0 |
| Send a chat line using the normal system. | |
| virtual void | sendDisconnectChat (UnicodeString text)=0 |
| Send a chat line using the disconnect manager. | |
| virtual void | sendFile (AsciiString path, UnsignedByte playerMask, UnsignedShort commandID)=0 |
| virtual UnsignedShort | sendFileAnnounce (AsciiString path, UnsignedByte playerMask)=0 |
| virtual Int | getFileTransferProgress (Int playerID, AsciiString path)=0 |
| virtual Bool | areAllQueuesEmpty (void)=0 |
| virtual void | quitGame ()=0 |
| Quit the game right now. | |
| virtual void | selfDestructPlayer (Int index)=0 |
| virtual void | voteForPlayerDisconnect (Int slot)=0 |
| register a vote towards this player's disconnect. | |
| virtual Bool | isPacketRouter (void)=0 |
| virtual Real | getIncomingBytesPerSecond (void)=0 |
| virtual Real | getIncomingPacketsPerSecond (void)=0 |
| virtual Real | getOutgoingBytesPerSecond (void)=0 |
| virtual Real | getOutgoingPacketsPerSecond (void)=0 |
| virtual Real | getUnknownBytesPerSecond (void)=0 |
| virtual Real | getUnknownPacketsPerSecond (void)=0 |
| virtual void | updateLoadProgress (Int percent)=0 |
| virtual void | loadProgressComplete (void)=0 |
| virtual void | sendTimeOutGameStart (void)=0 |
| virtual UnsignedInt | getLocalPlayerID ()=0 |
| virtual UnicodeString | getPlayerName (Int playerNum)=0 |
| virtual Int | getNumPlayers ()=0 |
| virtual Int | getAverageFPS ()=0 |
| virtual Int | getSlotAverageFPS (Int slot)=0 |
| virtual void | attachTransport (Transport *transport)=0 |
| virtual void | initTransport ()=0 |
| virtual Bool | sawCRCMismatch ()=0 |
| virtual void | setSawCRCMismatch ()=0 |
| virtual Bool | isPlayerConnected (Int playerID)=0 |
| virtual void | notifyOthersOfCurrentFrame ()=0 |
| Tells all the other players what frame we are on. | |
| virtual void | notifyOthersOfNewFrame (UnsignedInt frame)=0 |
| Tells all the other players that we are on a new frame. | |
| virtual Int | getExecutionFrame ()=0 |
| Returns the next valid frame for simultaneous command execution. | |
| virtual UnsignedInt | getPingFrame ()=0 |
| virtual Int | getPingsSent ()=0 |
| virtual Int | getPingsRecieved ()=0 |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Static Public Member Functions | |
| static NetworkInterface * | createNetwork (void) |
Additional Inherited Members | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Interface definition for the Network.
Definition at line 53 of file NetworkInterface.h.
|
inlinevirtual |
Definition at line 58 of file NetworkInterface.h.
|
pure virtual |
Implemented in Network.
|
static |
This creates a network object and returns it.
Definition at line 259 of file Network.cpp.
|
pure virtual |
Returns the next valid frame for simultaneous command execution.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Get the current allowed frame rate.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Get the smallest packet arrival cushion since this was last called.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Get the current RunAhead value.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
|
pure virtual |
Implemented in Network.
|
pure virtual |
Are the commands for the next frame available?
Implemented in Network.
Implemented in Network.
|
pure virtual |
does a lightweight update for passing messages around.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Tells all the other players what frame we are on.
Implemented in Network.
|
pure virtual |
Tells all the other players that we are on a new frame.
Implemented in Network.
|
pure virtual |
Parse a userlist, creating connections.
Implemented in Network.
|
pure virtual |
Quit the game right now.
Implemented in Network.
|
pure virtual |
|
pure virtual |
Send a chat line using the normal system.
Implemented in Network.
|
pure virtual |
Send a chat line using the disconnect manager.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Tell the network what local ip and port to bind to.
Implemented in Network.
|
pure virtual |
Implemented in Network.
|
pure virtual |
Sets the network game frame counter to -1.
Implemented in Network.
|
pure virtual |
|
pure virtual |
Implemented in Network.
|
pure virtual |
register a vote towards this player's disconnect.
Implemented in Network.