This wiki is out of date, use the continuation of this wiki instead

Network DLL

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:00, 13 November 2007 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Revision as of 16:04, 13 November 2007 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 14: Line 14:
* One command setup, another one for listening for connections (server) or one for opening a connection (client). * One command setup, another one for listening for connections (server) or one for opening a connection (client).
* Connection status monitor, informs Fenix of the status of the connections. * Connection status monitor, informs Fenix of the status of the connections.
-* Sending and receiving of all variables, graphs, files, whatever you want.+* Sending and receiving of variables of all [[datatypes]], [[graphic]]s, files, whatever you want.
* Download/upload meter, for measuring of speeds and totals. * Download/upload meter, for measuring of speeds and totals.
* Automatic message separation (separation string specifiable). * Automatic message separation (separation string specifiable).

Revision as of 16:04, 13 November 2007

Up to DLL's



Contents

Definition

Network.DLL is a DLL for internet/network communication between two Fenix programs or a Fenix program and a different program. It handles quite a few things on its own, so the user can focus on different things in his program.

Features

  • One command setup, another one for listening for connections (server) or one for opening a connection (client).
  • Connection status monitor, informs Fenix of the status of the connections.
  • Sending and receiving of variables of all datatypes, graphics, files, whatever you want.
  • Download/upload meter, for measuring of speeds and totals.
  • Automatic message separation (separation string specifiable).
  • Dynamic messagebuffer provides limitless sending and receiving.

How to use

To be able to use it, you must include the Network.DLL functionality:

include "Network.fh";

First you initialize Network.DLL:

NET_Init(0,10,1);

From this point you can do whatever you like, for example connect to google on port 3435:

NetID=NET_Open("www.google.com",3435);

And send a message:

NET_Message(NetID,"Hello!");

Or listen for connections on port 4555:

NET_Listen(4555);

Future

It probably will have UDP support as well, though at the moment only TCP is used.

Download

Here's the complete package containing a simple testprogram with commented source, the DLL, the sourcecode and full documentation:

Also Link3rn3l made an example, using Fenix 0.91. Fenix 0.92a included:

Documentation

Links


Network.DLL Documentation
MainFunctionsGlobalsDefinesErrorcodesChangelog
DLL's
Explosion.DLLGUI.DLLImage.DLLLCD.DLLLog.dllMPEG.DLLMixer.DLLNetwork.DLLTTF.DLL
Personal tools