PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > LUA Scripting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2009, 10:54 AM
Feliciteria Feliciteria is offline
PSP Newbie
 

Join Date: Nov 2008
Posts: 17
Feliciteria Has a Beginner Reputation
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
Reply With Quote
  #2  
Old 04-11-2009, 03:39 AM
NottNott NottNott is offline
PSP Newbie
 

Join Date: Apr 2009
Posts: 3
NottNott Has a Beginner Reputation
Default

Quote:
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
__________________
>> Lua, VB.NET, C#.NET, PHP <<
PSP phat :: GTA xploit > 1.5 > 3.9 > 5.0 M33-4
PSP Slim :: 5.0 M33-4 > 5.0 M33-6 (see thrw w/ red buttons)
Reply With Quote
  #3  
Old 04-11-2009, 04:52 AM
Furypaw's Avatar
Furypaw Furypaw is offline
Programmer
PSP Veteran
 
Join Date: Jul 2007
Location: Furypaw.rar
Posts: 1,058
Furypaw is on a distinguished road
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.
__________________
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©