PDA

View Full Version : portable network library for pascal?



JernejL
04-05-2007, 09:30 PM
Is there a portable network library for pascal, something like ENET? if not, what do you use for networking in your windows and linux games?

edit: i meant this enet:
http://enet.bespin.org/

M109uk
05-05-2007, 11:03 AM
Hi Delfi,

Theres 2 i know of, which im thinking about using myself.. theres SDL Net, and there is HawkNL. I havn't looked in to either of them at the moment, i havn't really got that far yet.

Robert Kosek
05-05-2007, 11:09 AM
*cough* Indy. :D

Apparently they have beta versions of Indy which work with FPC, but have incompatibilities with the Win64 OS and Solaris. Pretty safe to say that for the time being it is probably your best bet.

http://www.indyproject.org/Sockets/fpc/index.EN.aspx

technomage
05-05-2007, 11:44 AM
Try

http://www.pascalgamedevelopment.com/viewarticle.php?a=20&p=1#article

It's a 3 part intro into SDL_Net using the JEDI-SDL headers. It might help :D

JernejL
05-05-2007, 01:37 PM
hawknl seems promising, i'll try that one, cheers!

Almindor
12-05-2007, 09:23 AM
You could try lNet which is specifically ment for FPC and Lazarus. Works on many platforms, latest also winCE (experimental tho).

http://wiki.lazarus.freepascal.org/lNet

JernejL
12-05-2007, 11:14 AM
But that's not quite game-oriented network library the way hawknl and enet are.

Almindor
12-05-2007, 05:56 PM
But that's not quite game-oriented network library the way hawknl and enet are.

Elaborate... enet's main description applies to lNet too. The difference is that lNet ALSO provides some of the higher level stuff.

If you mean that OOP is too cumbersome then ok (wrong but I can accept that :D). lNet was actually created for my game originally (and still not used in it :D) and only eventually grew into what it is today.

JernejL
12-05-2007, 06:51 PM
But that's not quite game-oriented network library the way hawknl and enet are.

Elaborate... enet's main description applies to lNet too. The difference is that lNet ALSO provides some of the higher level stuff.

If you mean that OOP is too cumbersome then ok (wrong but I can accept that :D). lNet was actually created for my game originally (and still not used in it :D) and only eventually grew into what it is today.

so, does inet provide enet's delivery of any size data over udp in proper order and properly handling split packets?

Almindor
12-05-2007, 08:22 PM
so, does inet provide enet's delivery of any size data over udp in proper order and properly handling split packets?

No, but I tought you ment base TCP/UDP :) Misunderstanding then.