mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-27 19:42:22 -05:00
Documentation/Web: Small addition.
This commit is contained in:
parent
73b479b7c9
commit
eca61a857f
@ -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).
|
||||||
|
Loading…
Reference in New Issue
Block a user