Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Nov 18, 2017 4:43 am

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RakNet
PostPosted: Sun Mar 12, 2006 3:13 pm 
Offline
Transport Empire Developer
Transport Empire Developer
User avatar

Joined: Mon Feb 03, 2003 9:30 am
Posts: 699
Location: Back at the office
Yesterday, DominionSpy mentioned an open source network framework for games, RakNet.

I've played around a bit with this framework and here's a preliminary result. :)

More details will follow later, when I've built the framework into the code of task 3, milestone 3.


Attachments:
File comment: To compile, link against all of raknet's .cpp files and link against ws2_32.lib.
testraknet.zip [1.69 KiB]
Downloaded 200 times

_________________
Feel free to contact me over Email! My current timezone: Europe/Amsterdam (GMT+1 or GMT+2)
Code:
+------------Oo.------+
| Transport Empire -> |
+---------------------+

[ General TE Discussion ] [ TE Development ] [ TE Coding ]
Under construction...
Top
   
 Post subject:
PostPosted: Mon Mar 13, 2006 9:38 am 
Offline
Transport Empire Developer
Transport Empire Developer
User avatar

Joined: Mon Feb 03, 2003 9:30 am
Posts: 699
Location: Back at the office
Okay, here are the sources of task 3-3, which now uses RakNet for network communication.

To be honest, I like using this library, even though I haven't done anything crucial yet.

A small changelog:
  • class Socket is no longer necessary. ClientSocket and ServerSocket differ too much.
  • ClientSocket and ServerSocket are now a thin layer around RakClient and RakServer.
  • The functionality added to RakNet is our own Packet format: ClientSocket and ServerSocket translate RakNet packets to Transport Empire Packets (tm)

The binaries are growing larger and larger. RakNet adds in around 350Kb per executable. This will be my last post including executables.

Edit: RakNet does not add 800Kb. I was measuring incorrectly.


Attachments:
File comment: Binaries are included.
RakNet is not included!

For instructions on adding RakNet to the source code, look in the raknet directory.

task-3.3+raknet.zip [495.69 KiB]
Downloaded 199 times

_________________
Feel free to contact me over Email! My current timezone: Europe/Amsterdam (GMT+1 or GMT+2)

Code:
+------------Oo.------+
| Transport Empire -> |
+---------------------+


[ General TE Discussion ] [ TE Development ] [ TE Coding ]

Under construction...
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.