Basic Networking questions

Member
Posts: 94
Joined: 2008.08
Post: #1
I already have a game in the apps store and its doing moderatly welll, but Im wanting to add online multiplayer but I dont really know where to start as I've never done networking at all before. My questions are:

1) What sort of server will I need? I already have a linux virtual server running my websites, but Im not sure it has a C compiler, will I need to rent another one too? Are there any you can recommend?

2) Is there any libraries out there I can use to help me develop my networking code?

3) Are there any decent tutorials on how to start writing networking code on the iPhone?

4) What can I expect in regards to lag/ping times etc? As this is a fps space shooter game, it could probably do with fast responses.

Many thanks for any help you can give?
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
wonza Wrote:I've never done networking at all before. [...] As this is a fps space shooter game, it could probably do with fast responses.

Just to warn you, this is likely to be like learning to fly by jumping off a cliff.

The ubiquitous introduction to BSD socket programming: http://beej.us/guide/bgnet/output/html/s...bgnet.html

This thread has some useful real-time networking links: http://www.idevgames.com/forum/showthread.php?t=13402
Quote this message in a reply
Member
Posts: 94
Joined: 2008.08
Post: #3
Thanks for the links,

I did mean to say I'd never done networking in C before. Im still no expert though, but I have done it in Java, but at first glance, it looks alot prettier in Java Smile
Quote this message in a reply
Member
Posts: 249
Joined: 2008.10
Post: #4
wonza Wrote:I already have a game in the apps store and its doing moderatly welll, but Im wanting to add online multiplayer but I dont really know where to start as I've never done networking at all before. My questions are:

1) What sort of server will I need? I already have a linux virtual server running my websites, but Im not sure it has a C compiler, will I need to rent another one too? Are there any you can recommend?

2) Is there any libraries out there I can use to help me develop my networking code?

3) Are there any decent tutorials on how to start writing networking code on the iPhone?

4) What can I expect in regards to lag/ping times etc? As this is a fps space shooter game, it could probably do with fast responses.

Many thanks for any help you can give?

wonza, I would like to see your game, what is its name?

by the way, if have no idea maybe multithreading and sockets is a bit hard, you can try some library. Oolong engine uses Enet for network, take a look.
Quote this message in a reply
Member
Posts: 94
Joined: 2008.08
Post: #5
http://spacerage.co.uk is my game Smile

Yeah, I'd probably have to use some library, I heard of another dev using this library, so I might give that a look.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Basic Questions for a Word Game avidgamer101 4 4,567 May 19, 2012 07:26 PM
Last Post: MattDiamond
  FPS Networking wonza 5 3,187 Mar 3, 2009 07:06 AM
Last Post: wonza