Author Topic: PXLuaSocket-2.0.1 and SMTP Support??  (Read 2018 times)

0 Members and 1 Guest are viewing this topic.

Offline st0ne-db

  • Scripter
  • Double Ace
  • ******
  • Posts: 107
  • Karma: +14/-3
PXLuaSocket-2.0.1 and SMTP Support??
« on: 20 September, 2006, 22:30:35 »
First i want to thank PPK for compiling this lib ;D

But... Im having a little trouble with it.. was hoping someone might be able to help me.
Im using the Lua 5.0.3 version and am loading it as instructed by PPK's post...

Code: [Select]
libinit = loadlib("pxluasocket.dll", "luaopen_pxluasocket");
libinit();

Im trying to use the smtp functions as explaind in the docs..
The docs instruct you to load the module like this:

Code: [Select]
-- loads the SMTP module and everything it requires
local smtp = require("socket.smtp")

I know we must load it a different way in Ptoka... I have been sucessfull getting the lib to work outside
of Ptoka using the win32 distro on LuaForge.

after loading the socket lib in PX.. the table 'socket' is available.. but 'socket.smtp' is not.
only basic socket funtions are there...

Code: [Select]
socket = { _DEBUG, dns, gettime, newtry, protect, select, sink, skip, sleep, source, tcp, try, udp, _VERSION }

Can someone tell me how to load the smtp module in Lua 5.0.3 / PtokaX or if its even supported.

Thanks,

-St0ne_db

PtokaX forum

PXLuaSocket-2.0.1 and SMTP Support??
« on: 20 September, 2006, 22:30:35 »

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: PXLuaSocket-2.0.1 and SMTP Support??
« Reply #1 on: 20 September, 2006, 22:36:52 »
I'll take a look.
« Last Edit: 20 September, 2006, 22:57:41 by bastya_elvtars »
Everything could have been anything else and it would have just as much meaning.

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 478
  • Karma: +209/-22
  • PtokaX developer
Re: PXLuaSocket-2.0.1 and SMTP Support??
« Reply #2 on: 20 September, 2006, 23:36:02 »
smtp.lua (yes it is script, not compiled part of library) is included in archive with PXLuaSocket ::)
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

PtokaX forum

Re: PXLuaSocket-2.0.1 and SMTP Support??
« Reply #2 on: 20 September, 2006, 23:36:02 »