Index: index.php
===================================================================
--- index.php	(revision 59)
+++ index.php	(revision 60)
@@ -3,7 +3,20 @@
 // name this file "index.php", and place data in $data_dir directory.
 require("config.inc.php");
 
+function GorP($var)
+{
+global $_GET,$_POST;
 
+if(isset($_POST[$var]))
+    return $_POST[$var];
+
+if(isset($_GET[$var]))
+    return $_GET[$var];
+
+return "";
+}
+
+
 function decompress_file($gz,$final)
 {
 $fp=gzopen($gz,"r");
@@ -149,5 +162,5 @@
 }
 } // end main()
 
-main($_GET["file"],$_GET["type"],$_GET["username"],$_GET["password"],$_GET["data"]);
+main(GorP("file"),GorP("type"),GorP("username"),GorP("password"),GorP("data"));
 ?>
able(int fd);
+/**
+Will return true (1) if there is some data ready on ##fd## socket,
+false (0) otherwise.
+**/
+
 extern signed char raydium_network_netcall_add (void *ptr, int type, signed char tcp);
 /**
 This function will register a new Network Callback ("netcall").
@@ -356,6 +356,7 @@
 ##from##, not needed here.
 **/
 
+
 extern signed char raydium_network_read (int *id, signed char *type, char *buff);
 /**
 Reads next packet from network (FIFO) stack.
@@ -375,6 +376,22 @@
 type, even with flushed reading.
 **/
 
+signed char raydium_network_server_broadcast(char *name, char *app_or_mod, int version);
+/**
+This function will start to broadcast a server to the LAN.
+You must provide a party ##name##, the application or mod name (##app_or_mod##)
+and a "protocol" version of you choice.
+The server is going to broadcast a "beacon" packet  to the LAN 
+every ##RAYDIUM_NETWORK_BEACON_DELAY##.
+Any client in "discovery mode" with the same ##app_or_mod## and ##version##
+will see this beacon.
+**/
+
+void raydium_network_server_broadcast_check(void);
+/**
+Internal use.
+**/
+
 extern signed char raydium_network_server_create (void);
 /**
 Will transform you application into a server, accepting new clients 
@@ -395,6 +412,14 @@
 as said before.
 **/
 
+signed char raydium_network_client_discover(char *game,int version);
+/**
+This function will set client in ##RAYDIUM_NETWORK_MODE_DISCOVER## mode.
+While using this mode, a client will search every LAN server with the
+same ##game## (or mod name) and ##version## as itself.
+Then, you can access to this server list using [undocumented yet].
+**/
+
 extern void raydium_network_client_disconnect(void);
 /**
 This function will disconnect client from server, if connected.