ArianeSoft - Programming and development for Windows and Windows Mobile :: Forums :: PPL - Pocket Programming Language :: Support
 
<< Previous thread | Next thread >>
Winsock PPL Tutorial
Moderators: kornalius, bmanske, PointOfLight
Author Post
mctroen
Mon Apr 16 2007, 06:10pm

Registered Member #339
Joined: Wed Mar 28 2007, 08:33am
Posts: 14
I just want to know if there is a tutorial about using Winsock with PPL.
Thank you.

Stephane BRUNET
New PeoPLe
Back to top
Mike Halliday
Mon Apr 28 2008, 02:55pm

Registered Member #671
Joined: Tue Sep 25 2007, 12:22pm
Posts: 400
Hi,

Are you still looking for a winsock tutorial?

I have been working on some Winsock .ppl code for a future newsletter tutorial. I may include it in next months newsletter if there is enough demand.

ta.

Editor of \'Voice of the PPL\' the newsletter for the PPL by the PPL!

Still trying to get people to contribute to the newsletter!
Back to top
quangdx
Tue May 13 2008, 05:06am

Registered Member #87
Joined: Mon Oct 02 2006, 07:34pm
Posts: 157
hey,
i was looking for some sort of example to read and write to a web server.
just to store hiscores online.
is winsock where i need to be looking to achieve this?

edit.
looking more through the forums,
there's examples of MySQL access, but only for the PC side not PPC.
is there a simplier way to read and write to files on my website? or does it have be done through MySQL.
Also I would like to be able to do it from the PPC as well as the PC.

[ Edited Tue May 13 2008, 05:25am ]

the science of play
www.asobitech.com
Back to top
Mike Halliday
Tue May 13 2008, 06:50am

Registered Member #671
Joined: Tue Sep 25 2007, 12:22pm
Posts: 400
Probably the easiest and quickest way would be to upload files using the FTP protocol.

I will have a look at a simple FTP client in PPL and include it in a newsletter article if you want. (I need something to fill space in Mays newsletter)

Editor of \'Voice of the PPL\' the newsletter for the PPL by the PPL!

Still trying to get people to contribute to the newsletter!
Back to top
quangdx
Tue May 13 2008, 05:09pm

Registered Member #87
Joined: Mon Oct 02 2006, 07:34pm
Posts: 157
would FTP be the best way to handle an online hiscore table?
i guess technically it would work.
reading through the forums there's talk of PHP scripting,
but that would mean I'd have to learn some PHP aswell.

the science of play
www.asobitech.com
Back to top
Mike Halliday
Wed May 14 2008, 01:10pm

Registered Member #671
Joined: Tue Sep 25 2007, 12:22pm
Posts: 400
I will look into this for you. I think the easiest way will be client server data block upload.

Let me have a look at creating a demo for you.

Editor of \'Voice of the PPL\' the newsletter for the PPL by the PPL!

Still trying to get people to contribute to the newsletter!
Back to top
PointOfLight
Wed May 14 2008, 01:50pm

Registered Member #49
Joined: Sun Sep 17 2006, 03:02pm
Posts: 1129
If you want to store the high scores in a flat file, then FTP is certainly the best way to go.  The question is, are you going to need to read that file from the web site, or is it just going to be for individual use?  In other words, will I as a user need to grab that file before I start playing if I want to compare my scores to those around the world, or are you going to have a page on your web site that displays the scores?  If the latter, you will need to employ some sort of scripting to display those values (at least if you want them to look pretty).  That's probably where the discussion of PHP comes in, though there are certainly many choices for accomplishing this.  Any way you look at it, I think MySQL would probably be overkill.

Looking back at the thread you referenced, I see that PHP was suggested as a way of getting the PPC to "talk" to MySQL.  I suppose that would be one way of handling that problem, but it just adds an extra layer you probably wouldn't want to deal with.  Again, if all you're worried about is high scores a text file is probably the simplest route.

Eric Pankoke
Founder
Point Of Light Software
http://www.polsoftware.com/
Back to top
quangdx
Fri May 16 2008, 07:00am

Registered Member #87
Joined: Mon Oct 02 2006, 07:34pm
Posts: 157
cheers mike and eric,
i think ftp and a text file is what i'll use,

now if someone could be kind enough to point me in the right direction on how i program ftp access with PPL, i will be muchly in gratitude.

the science of play
www.asobitech.com
Back to top
Mike Halliday
Fri May 16 2008, 04:50pm

Registered Member #671
Joined: Tue Sep 25 2007, 12:22pm
Posts: 400
First off, you will need a local ftp server on port 21 to test with (I use FileZilla) then you need to look at SWSOCK.ppl and winsock.ppl to see how the commands are formed and what is #defined, this should give you enough to go on. You could also look at the MSDN to see how winsock works and search on Google for example FTPClients (Try the VB libraries - they are pretty easy to convert)

I will have a go at an ftp client to see how easy it is. If I am successful, I will post the code for you. Hopefully someone (including yourself) will beat me to it!

Editor of \'Voice of the PPL\' the newsletter for the PPL by the PPL!

Still trying to get people to contribute to the newsletter!
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System