Crystal Space
Welcome, Guest. Please login or register.
July 25, 2014, 06:23:22 am

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8229 Members
Latest Member: Kula999lidia
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Project Development
| |-+  Development Discussion
| | |-+  Network-Plugin
« previous next »
Pages: [1] Print
Author Topic: Network-Plugin  (Read 7350 times)
mark
Guest
« on: December 15, 2004, 03:38:33 pm »

Since the old network-plugin has been removed, what are plans for the next network-plugin?
Do you want to create it from scratch or do you want to use an external lib?

I played around with ptypes' networking classes and it is really easy to create a UDP or TCP-server and client (5 lines and you got it running).

See the docs/examples here:
http://www.melikyan.com/ptypes/

Because ptypes uses the zlib/libpng License and is plattform-independent, it should be no problem to make use of this lib (or of it's networking-code only).

What do you think?
Logged
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #1 on: December 15, 2004, 05:12:21 pm »

Yes there has been talk about this on the mailing list, i'll search it later and see if i can find what it actually resulted in. Also, could i ask that you register Tongue in case we have too many "Guests" floating around.
Logged
Keen
Webmaster
Administrator
Newbie
*****
Posts: 46



View Profile WWW Email
« Reply #2 on: December 15, 2004, 10:17:45 pm »

Raknet http://www.rakkarsoft.com/ Seems very easy to use (I made a client server thing for a game in less than an afternoon). But ease of use doesn't mean its good. I'm not sure if it is or not, but it does sound good.

Another one I had heard of is SDL's networking. Not too sure about that one. I don't know where it is located. The SDL website is at http://www.libsdl.org.
Logged

Keen

Stop emailing me with scary CS questions! Direct your emails to jorrit or thebolt!

For Crystal Space Tutorials, articles and other stuff, visit community.crystalspace3d.org
deckerego
Full Member
***
Posts: 149


View Profile WWW
« Reply #3 on: December 16, 2004, 07:04:10 am »

A new architecture was prototyped, but I haven't seen any new implementations. The idea was to have a common interface for UDP,TCP and IP messages, but this turned out to be fairly complex. UDP implementation was the big thing (to keep things low-latency), but it's not easy.

Really I think the key would be to start with a good UDP datagram layer and go from there. Kinda reiterating previous responses, I hear the SDL network layer is fairly good at that (many deathmatch games ported by Loki Wink )
Logged
intruder_xo
Newbie
*
Posts: 10



View Profile WWW
« Reply #4 on: March 13, 2005, 11:57:53 pm »

Hello folks,

Well on that subject I would also like to get your opinions about the different Networking Libraries that are mentioned on the Crystal Space community web site.

They mention the following :

    *  VOS
    * HawkNL
    * Raknet
    * enet
    * SDL_net
    * Netlib
    * OpenTNL

I know VOS has been implemented on top of CS,  and OpenTNL is what has been used in Tribes, and some commercial games.

Thanks
Logged
HangDude
Newbie
*
Posts: 6

25476702
View Profile WWW
« Reply #5 on: March 27, 2005, 10:24:55 pm »

Well, i guess the big issue about UDP is that you can't guarantee that it's going to get there (does anybody know how many packages typically arrive on a free good adsl connection ?)

We could introduce a Message-based system where Messages can be either sent across reliable (TCP) or unreliable connection. Of course we would have to impose some limits when sending it unreliable (size of message) or introduce a flag in the message header that would tell it that next message contains data from the previous message etc.

I wouldn't go and try to reinvent TCP based on UDP, but just make sure that both can be transparently used. Something where you can deploy your messages and check to pick them up each frame or so. This would also have to include some multi-threading when waiting for messages (I'm not to familiar with asynchronous sockets, and guess they're not supported on non-win32 plattforms)..

Just my 2 cents!

Phil
Logged
pinniped
Guest


Email
« Reply #6 on: December 21, 2005, 06:08:43 am »

Anything happening with the network stuff?

RakNet works well - just spent the past 7 months removing bugs.  It will now run on OSX as well and it's even got its own package under FreeBSD.

Sure UDP is 'unreliable' but RakNet has a reliability layer to implement reliable UDP so you can send a reliable packet when you need to - no need to worry about your login or password packets vanishing. Tongue

HawkNL sucks and I have only said so about a million times...

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.153 seconds with 15 queries.