- This wiki is out of date, use the continuation of this wiki instead
Net init
From FenixWiki
Revision as of 11:10, 13 April 2007 by 86.136.63.228 (Talk)
Contents |
Definition
INT NET_Init ( INT timeout , WORD maxconnections , WORD maxlistenports )
Initializes Network.DLL.
Returns
INT : Network.DLL Errorcode
NET_ERROR_ALREADYINIT | Network.DLL already initialized. |
NET_ERROR_INITIALIZATION | Error during initialization. |
NET_ERROR_TOOFEWCONNS | Too small number of maximum connections |
NET_ERROR_TOOMANYLISTENERS | Too many listenports specified. |
NET_ERROR_NONE | No error. |
Parameters
INT timeout | Milliseconds to wait for messages each frame. (0 is the best thing, really) |
WORD maxconnections | Maximum number of connections. |
WORD maxlistenports | Maximum number of ports on which can be listened for connections. |
Notes
Also consider (initializing) the following Global variables (before calling NET_Init()):
- word NET.MaxConnections
- word NET.MaxListenPorts
- word ActiveConnections
- word ActiveListenPorts
- byte NET.ConsoleReports
- byte NET.ReturnNETDLLCommands
Example
Program example; Begin NET_Init(0,20,1); Loop frame; End End
Categories: Functions | Networkdll | Dll