Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: ENET for pascal

  1. #11

    ENET for pascal

    What are the advantages of this lib ?
    From brazil (:

    Pascal pownz!

  2. #12

    ENET for pascal

    Quote Originally Posted by arthurprs
    What are the advantages of this lib ?
    Well, it's cross platform for a start.
    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>

  3. #13

    ENET for pascal

    Quote Originally Posted by {MSX}
    Quote Originally Posted by arthurprs
    What are the advantages of this lib ?
    Well, it's cross platform for a start.
    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.
    Incredible

    Downloading :!:
    From brazil (:

    Pascal pownz!

  4. #14

    ENET for pascal

    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>

  5. #15

    ENET for pascal

    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.

  6. #16

    ENET for pascal

    Quote Originally Posted by vgo
    EDIT: Nevermind... I had left one of the parameters uninitialized, doh!
    Lol

    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>

  7. #17

    ENET for pascal

    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.

  8. #18

    ENET for pascal

    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.

  9. #19

    ENET for pascal

    Quote Originally Posted by Parcel
    I recently translate enet to pascal.

    http://cc.codegear.com/Item/24981

    It can help you.
    So you're the author of the wrappers too? Very good job

    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>

  10. #20

    ENET for pascal

    Quote Originally Posted by {MSX}
    Quote Originally Posted by Parcel
    I recently translate enet to pascal.

    http://cc.codegear.com/Item/24981

    It can help you.
    So you're the author of the wrappers too? Very good job

    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?
    Yes, I'm.

    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.

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •