Documentation/Web: Small addition.

This commit is contained in:
Merlijn Wajer 2011-03-13 20:51:02 +01:00
parent 73b479b7c9
commit eca61a857f
1 changed files with 31 additions and 9 deletions

View File

@ -4,6 +4,16 @@
Internet Functions Internet Functions
================== ==================
The internet functions in Simba range from HTTP functions and low-level
socket functions. With the HTTP functions you can scrape the web, send form data
to web pages.
With the socket functions you can implement virtually any network procotol:
there have been several IRC bots.
HTTP Functions
--------------
OpenWebPage OpenWebPage
~~~~~~~~~~~ ~~~~~~~~~~~
@ -13,6 +23,12 @@ OpenWebPage
OpenWebPage opens the given web page (url) with your default browser. OpenWebPage opens the given web page (url) with your default browser.
Example:
.. code-block:: pascal
OpenWebPage('http://villavu.com');
GetPage GetPage
~~~~~~~ ~~~~~~~
@ -123,15 +139,8 @@ GetRawHeaders
GetRawHeaders returns a string of headers from the specified client. GetRawHeaders returns a string of headers from the specified client.
SetProxy Socket Functions
~~~~~~~~ ----------------
.. code-block:: pascal
procedure SetProxy(Client : Integer; pHost, pPort : String);');
SetProxy configures a proxy with the given client (Client) proxy host (pHost)
and port (pPort).
CreateSocket CreateSocket
~~~~~~~~~~~~ ~~~~~~~~~~~~
@ -258,3 +267,16 @@ SocketInfo
procedure SocketInfo(Client: integer; out IP, Port: string); procedure SocketInfo(Client: integer; out IP, Port: string);
SocketInfo sets where a bound socket will be sending data to (out IP, out Port). SocketInfo sets where a bound socket will be sending data to (out IP, out Port).
Generic functions
-----------------
SetProxy
~~~~~~~~
.. code-block:: pascal
procedure SetProxy(Client : Integer; pHost, pPort : String);');
SetProxy configures a proxy with the given client (Client) proxy host (pHost)
and port (pPort).