diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-12-23 22:32:12 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-12-23 22:32:12 +0000 |
| commit | 2f970d782ea97a73787f76bd100bb06615456904 (patch) | |
| tree | 949257dd1ec89db41757fe1f0209c8f8a7e2bbe8 /src/tp.lua | |
| parent | ae2d2859e7882d553276896d499064a2407c3853 (diff) | |
| download | luasocket-2f970d782ea97a73787f76bd100bb06615456904.tar.gz luasocket-2f970d782ea97a73787f76bd100bb06615456904.tar.bz2 luasocket-2f970d782ea97a73787f76bd100bb06615456904.zip | |
Changes due to new compat-5.1
Diffstat (limited to '')
| -rw-r--r-- | src/tp.lua | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -12,8 +12,7 @@ local base = require("base") | |||
| 12 | local string = require("string") | 12 | local string = require("string") |
| 13 | local socket = require("socket") | 13 | local socket = require("socket") |
| 14 | local ltn12 = require("ltn12") | 14 | local ltn12 = require("ltn12") |
| 15 | 15 | module("socket.tp") | |
| 16 | local tp = module("socket.tp") | ||
| 17 | 16 | ||
| 18 | ----------------------------------------------------------------------------- | 17 | ----------------------------------------------------------------------------- |
| 19 | -- Program constants | 18 | -- Program constants |
| @@ -121,4 +120,4 @@ function connect(host, port, timeout) | |||
| 121 | return base.setmetatable({c = c}, metat) | 120 | return base.setmetatable({c = c}, metat) |
| 122 | end | 121 | end |
| 123 | 122 | ||
| 124 | base.setmetatable(tp, nil) | 123 | base.getmetatable(_M).__index |
