Page 1 of 1

PostPosted: Mon Feb 12, 2001 9:48 pm
by iebnn
I read that the PalmOS supports TCP/IP. PLEASE PLEASE PLEAAAASE add this to PocketC... I would like to begin work on the first Massively Multiplayer Roleplaying Game for the Palm, and I need TCP/IP to do this!
Also, can I use POSE for testing TCP/IP stuff and other Internet stuff? Thanks :)

PostPosted: Mon Feb 12, 2001 10:36 pm
by SyPDA
Well, because you asked this question multiple times, you should look at your POSE thread. All your answers are there.

Try asking your question just once and please keep in mind, that this is a developers discussion board for PocketC. Not for POSE. Thanks.

PostPosted: Mon Feb 12, 2001 11:17 pm
by Vilmos
You can add TCP/Ip support yourself by writing a native library. There is documentation in the Palm resource page on the orbworks site. You will need CodeWarrior or GCC to compile the library.

I just took a quick look through the PalmOS SDK and there are several pages in the table of contents just for serial, IR and internet connectivity. Any library you write would not be a small task. On the other hand you mentioned that you had experience in TCP.

I have already written a Rogue type of RPG for the Palm using PocketC, which shows I also have an interest in RPG gaming. :) I am curious though, how are you going to make a multiplayer game? If you are using the internet then is it limited to wireless Palms? Or will IR also be considered? If so the range is pretty poor and you have to hold the new m100 at a ridiculous angle just to get it to work.

Got any details worked out? Let me know when you are in beta, I'd like to see the game.


PostPosted: Mon Feb 12, 2001 11:32 pm
by iebnn
Any Palm with a modem or wireless modem could play. I was thinking of having rooms, so that there isn't much lag or anything. In the first version, it will be very small. The server puts people in one room until there are about five people in that room. Then the server puts the people in another room (the new people connecting). Each room, in the first version (since there won't be many people), will take up one screen. There will be a "safe area", where you can talk, and can't be attacked, and the rest of the screen (your character is pretty small) is where you try to kill the other players and possibly some computer characters. It will be very simple. Once you kill a player I think your max HP might go up a little. When you've killed everyone in the room, or a certain amount of people, or if you've killed the most after a week, your rank goes up and the server is reset (but you keep your rank, even though your max HP goes back to normal.) After a while prizes will be awarded to those with extremely high ranks. I estimate that only approx. (not in the safe zone, which requires more because of the chatting) 1/4 of a kilabyte or so to refresh the screen... possible 1/5 or less. Very small because the game is so simple.
But I won't be able to code the TCP/Ip library myself. I have experiance in TCP using Visual Basic, but i don't have any experiance with programming PocketC libraries (I know a good bit of C++, like pointers, structs, loops, all the basic stuff, files). So I would really need someone else to write the TCP library :)

PostPosted: Tue Feb 13, 2001 12:47 am
by Vilmos
I see, I was thinking full MUD type RPG and wondering how that would work...although a Palm MUD would be good fun, it would be difficult to do.

Anyway I'm not sure you followed me with the library. The Palm contains all the necessary commands in the ROM. The Net Library is complete. What you would do with the native library is simply expose these system commands to PocketC. Check out the Palm SDK Reference at and the documentation with PocketC that explains how to make a native library.


PostPosted: Tue Feb 13, 2001 6:04 pm
by iebnn
I really don't think I know enough of C to do this. If it's relatively easy, would someone else care to make it? Then I could get started on the first MMORPG for the Palm :) How hard is it to program it so that PocketC can use those TCP/IP libraries? Maybe you could make the library for me? Or someone else? thanks

PostPosted: Tue Feb 13, 2001 7:02 pm
by iebnn
so any chance someone could write this? thanks

PostPosted: Tue Feb 13, 2001 10:46 pm
by iebnn
I'd just like to remind you that if no one writes this library for PocketC for TCP/IP, this project will never get done...

PostPosted: Wed Feb 14, 2001 1:24 am
by jstadolnik
iebnn, you're sounding pretty redundant. One such post on this is enough.

What you're asking for is a big job... at least 30 hours of work. The native library side of this is easy. The difficult part will be with handling the sockets. Fortunately, Palm has done most of the work, by providing a Berkeley-clone socket library (the Net Library). Another tricky aspect is the testing part.

Very few pocketC users have had experience with socket programming.

Since you have done this kind of programming and you have the desire for such a library, I suggest you write it yourself. You are the ideal canditate for the job.

So stop your nagging, and just write it. You can find palm TCP/IP examples at:

Good luck.


PostPosted: Wed Feb 14, 2001 6:05 pm
by iebnn
there's no way I could do this
I have only done simple TCP/IP and UDP programmiong in Visual Basic... just connecting, sending data, and closing the connection. I don't know anything about sockets.
Sorry for the redundancies... I'd just love to get this project done, but someone else would have to write the TCP/IP library. Would it really be 30 hours work?? If there's already the Net Library...
I just need to do simple things (send integers and strings). And I noticed a lot of other people had an interest in this. If this was released, we could finally develope good Internet apps!!!