What are the advantages of this lib ?
What are the advantages of this lib ?
From brazil (:
Pascal pownz!
Well, it's cross platform for a start.Originally Posted by arthurprs
Then, it uses UDP for its low latency, but it keep packets ordered (something UDP base doesnt do).
It also have a per-packet reliable flag, so that flagged packets will be resent until they arrive to destination (just like tcp, but with single packets). In this way you can flag important packets (for example, a new player entering the game), and don't flag other packets ( for example, a player movement: even if one is lost, the next one will update the char).
It also have channels: you can assign a different channel to each packet: they'll end up in different queues. Reliable packets that are delaing a channel won't affect other channels.
It also have some integrated feature like automatic ping, bandwidth throttle, count of packet loss, and much more.
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
IncredibleOriginally Posted by {MSX}
Downloading :!:
From brazil (:
Pascal pownz!
btw, the real site looks like being this one:
http://enet.bespin.org
It has version 1.1, the other is 1.0.
I wonder why none of the two says which one is the good one..
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
Looks like the perfect network library for my use. I started writing a test program and quickly ran into problems with server initialization.
[pascal]
var
EAddress: ENetAddress;
EServer: pENetHost;
FHost: String;
FPort: Word;
FMaxConnections: LongWord;
FInboundBandwidth: LongWord;
FOutboundBandwidth: LongWord;
EAddress.host := ENET_HOST_ANY;
EAddress.port := FPort;
EServer := enet_host_create(@EAddress, FMaxConnections, FInboundBandwidth, FOutboundBandwidth);
[/pascal]
I get "Abnormal program termination".
However, when I change the enet_host_create to this:
[pascal]
EServer := enet_host_create(@EAddress, 32, 0, 0);
[/pascal]
it works... What's wrong with passing the parameters? The parameters to the function are defined as LongWords in the wrapper.
EDIT: Nevermind... I had left one of the parameters uninitialized, doh!
If you develop an idiot proof system, the nature develops better idiots.
LolOriginally Posted by vgo
Yes it's perfect for online games.. I've struggled with sockets, indy, tcp and udp for ages.. Networking looks easy at firsts, but when you get down coding, it turns out to be a pain in the ass, especially if you want portable code.
Now i've managed to compile a pascal example for Enet on Windows, Linux and even on an ARM machine!
And it's very easy to use
If i have some spare time i'd like to create a better package, with a crossplatform version of enet.pas and some examples.
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
I recently translate enet to pascal.
http://cc.codegear.com/Item/24981
It can help you.
What you see is what you do.
<br />
<br />Sorry, I'm not English well.
Wow, that's great job indeed!
Gonna try to compile it later today.
If you develop an idiot proof system, the nature develops better idiots.
So you're the author of the wrappers too? Very good jobOriginally Posted by Parcel
Anyway i'm not so sure that translating the whole library is a good idea.. what if they release a new version?
Also, i don't like some of the requirements listed in readme_enetpas.txt (which doesn't mean you didn't a great work translating)
Btw, is it you who compiled enet.dll found this package? Maybe you have some clue about why identifiers start with an underscore?
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
Yes, I'm.Originally Posted by {MSX}
If a new version, I apply it again.
I think current version is rocksolid.
this translation is no problem in my test, but not fully tested in public.
Is underscored identifiers bad idea?
What you see is what you do.
<br />
<br />Sorry, I'm not English well.
Bookmarks