Results 1 to 3 of 3

Thread: Psp lua libcurl?

  
  1. #1
    Feliciteria is offline -Hacks Newbie
    Join Date
    Nov 2008
    Posts
    17
    Rep Power
    0

    Default Psp lua libcurl?

    are there any??

    I've already tweaked and studied the sample code of libcurl in c.

    But my main application is made from lua script. I am thinking if theres a libcurl similar code for lua? or not even libcurl, just a function to download files via FTP/HTTP.

    thanks in advance


  2. #2
    NottNott is offline -Hacks Newbie
    Join Date
    Apr 2009
    Posts
    3
    Rep Power
    0

    Default

    Let us assume a typical multithreading situation: We want to download several remote files through HTTP. Of course, to download several remote files, we must know how to download one remote file. In this example, we will use the LuaSocket library, developed by Diego Nehab. To download a file, we must open a connection to its site, send a request to the file, receive the file (in blocks), and close the connection. In Lua, we can write this task as follows. First, we load the LuaSocket library:
    http://www.lua.org/pil/9.4.html

    Have no idea if this will work for the PSP, if you try this tell me if it works

  3. #3
    Furypaw's Avatar
    Furypaw is offline Programmer -Hacks Veteran
    Join Date
    Jul 2007
    Location
    Furypaw.rar
    Posts
    1,002
    Rep Power
    13

    Default

    I'd try that. I'm not an avid lua programmer, I wrote hello world and a loading screen and that was it. But if you want libcurl in lua, you'd have to make it yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •