From 534b0cedf714d4de0a6cf67570e11f232cdccf84 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 28 Nov 2004 08:17:16 +0000 Subject: Added new instalation section to the manual. --- doc/introduction.html | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'doc/introduction.html') diff --git a/doc/introduction.html b/doc/introduction.html index 20c4d36..a285b81 100644 --- a/doc/introduction.html +++ b/doc/introduction.html @@ -4,7 +4,8 @@ - + LuaSocket: Introduction to the core @@ -26,6 +27,7 @@

home · download · +instalation · introduction · reference

@@ -104,29 +106,6 @@ Together, these changes make network programming in LuaSocket much simpler than it is in C, as the following sections will show.

- - -

Initializing the library

- -

-The core LuaSocket is almost entirely implemented in C. It is -usually available as a dynamic library which the interpreter can load -with the help of a loader module written in Lua. -Beginning with version 2.0 and following the Lua 5.0 trend, all LuaSocket -functionality is defined inside tables (or rather namespaces). No global -variables are ever created. -Namespaces are obtained with the require Lua function, which loads -and initializes any required library and returns the namespace. -For example, the core functionality or LuaSocket is usually available -from the "socket" namespace. -

- -
-socket = require("socket")
-print(socket.VERSION)
---> LuaSocket 2.0
-
-

TCP

@@ -318,6 +297,17 @@ io.write(socket.try((udp:receive()))) + + +

Much more

+ +

LuaSocket offers much more than TCP and UDP support. As the library +evolved, support for HTTP, FTP, +SMTP, MIME, URLs and much more was made available. These are +mostly implemented in Lua itself, with critical parts implemented in C for +efficiency

+