From eca61a857fd706c21faaf6c3ce9e972bfc73777f Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sun, 13 Mar 2011 20:51:02 +0100 Subject: [PATCH] Documentation/Web: Small addition. --- Doc/sphinx/scriptref/web.rst | 40 ++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/Doc/sphinx/scriptref/web.rst b/Doc/sphinx/scriptref/web.rst index 9ac8279..c8fb0d6 100644 --- a/Doc/sphinx/scriptref/web.rst +++ b/Doc/sphinx/scriptref/web.rst @@ -4,6 +4,16 @@ 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 ~~~~~~~~~~~ @@ -13,6 +23,12 @@ OpenWebPage OpenWebPage opens the given web page (url) with your default browser. +Example: + +.. code-block:: pascal + + OpenWebPage('http://villavu.com'); + GetPage ~~~~~~~ @@ -123,15 +139,8 @@ GetRawHeaders GetRawHeaders returns a string of headers from the specified client. -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). +Socket Functions +---------------- CreateSocket ~~~~~~~~~~~~ @@ -258,3 +267,16 @@ SocketInfo procedure SocketInfo(Client: integer; out IP, Port: string); 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).