diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-09-27 04:01:18 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-09-27 04:01:18 +0000 |
| commit | a04f15d1ca440006a53bd0d9f98c12e5abebd969 (patch) | |
| tree | 30d37d74b5c99d5d0e7489a421ec44ad0150113f /src/tp.lua | |
| parent | e1d318f26cf53ce9b2c3044d8d138956150488c7 (diff) | |
| download | luasocket-a04f15d1ca440006a53bd0d9f98c12e5abebd969.tar.gz luasocket-a04f15d1ca440006a53bd0d9f98c12e5abebd969.tar.bz2 luasocket-a04f15d1ca440006a53bd0d9f98c12e5abebd969.zip | |
Using new module scheme. Still needs fine tuning.
Diffstat (limited to 'src/tp.lua')
| -rw-r--r-- | src/tp.lua | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -6,11 +6,13 @@ | |||
| 6 | ----------------------------------------------------------------------------- | 6 | ----------------------------------------------------------------------------- |
| 7 | 7 | ||
| 8 | ----------------------------------------------------------------------------- | 8 | ----------------------------------------------------------------------------- |
| 9 | -- Load required modules | 9 | -- Declare module and import dependencies |
| 10 | ----------------------------------------------------------------------------- | 10 | ----------------------------------------------------------------------------- |
| 11 | local socket = require("socket") | 11 | local socket = require("socket") |
| 12 | local ltn12 = require("ltn12") | 12 | local ltn12 = require("ltn12") |
| 13 | 13 | ||
| 14 | module("socket.tp") | ||
| 15 | |||
| 14 | ----------------------------------------------------------------------------- | 16 | ----------------------------------------------------------------------------- |
| 15 | -- Program constants | 17 | -- Program constants |
| 16 | ----------------------------------------------------------------------------- | 18 | ----------------------------------------------------------------------------- |
