Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Indy 10 ;/ Complete lack of demos and DOC

  1. #1

    Indy 10 ;/ Complete lack of demos and DOC

    I simply don't know how make this lib work...

    I download the demos but nothing about TCP or UDP protocols

    -> Same thing with synapse, nothing about TCP or UDP =(

    someone can help me with a demo ?
    From brazil (:

    Pascal pownz!

  2. #2

    Indy 10 ;/ Complete lack of demos and DOC

    I've looked into Indy 10 too, a couple months ago. I figured that the latest version was probably the best to start out with. Unfortunately, like you, I had major difficulties understanding the whole thing. Only a few demos and little to no tutorials at all.
    That why I turned back to 9, which does tend to have more demos and tutorials, to get you on your way.

    Back then I did manage to complete the thing I wanted to create. But in all, the Indy experience wasn't as great as I had hoped it would be.

  3. #3

    Indy 10 ;/ Complete lack of demos and DOC

    Indy10 is not that hard in use. The things gets complicated when it comes to sending data. Indy10 has a shitty data type called TBytes, which is an array consists of bytes. I've figured out how to convert records and variables into TBytes, but no idea how to do it with TStream :roll: Unfortunately, you can't send any other data than TBytes with Indy10. :cry:

    Therefore I prefer to switch back to Indy9 or to use ICS.

  4. #4

    Indy 10 ;/ Complete lack of demos and DOC

    You can get an ebook on Indy 10, you can buy it here it's very good
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  5. #5

    Indy 10 ;/ Complete lack of demos and DOC

    I will try indy9

    What about synapse someone have some demo ?
    From brazil (:

    Pascal pownz!

  6. #6

    Indy 10 ;/ Complete lack of demos and DOC

    Quote Originally Posted by Brainer
    Indy10 is not that hard in use. The things gets complicated when it comes to sending data. Indy10 has a shitty data type called TBytes, which is an array consists of bytes. I've figured out how to convert records and variables into TBytes, but no idea how to do it with TStream :roll: Unfortunately, you can't send any other data than TBytes with Indy10. :cry:

    Therefore I prefer to switch back to Indy9 or to use ICS.
    Code:
    var
      bytes&#58; TBytes;
    begin
      SetLength&#40;bytes, stream.Length&#41;;
      Stream.Read&#40;bytes, stream.Length&#41;;
    end;
    It really isn't a complex thing. If you want to know these things try working with streams and archivers. You'll learn fast.

  7. #7

    Indy 10 ;/ Complete lack of demos and DOC

    It's not hard but inconvenient. What if the TStream is a TFileStream with a 100 MB file opened? Will you allocate 100 MB of memory, copy it all there and send all data at once? Probably not. They should have included a function which will automaticly send a TStream's content by chunks (you can always write such a function yourself though).

    As a side note, the code you have posted is wrong. It should be like this:
    Code:
    var 
      bytes&#58; TBytes; 
    begin 
      SetLength&#40;bytes, stream.Length&#41;; 
      Stream.Read&#40;bytes&#91;0&#93;, stream.Length&#41;; 
    end;

  8. #8
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Indy 10 ;/ Complete lack of demos and DOC

    You may also try ICS (internet component suite)

    http://www.overbyte.be/frame_index.html
    Its a bit easier to understand.
    NecroSOFT - End of line -

  9. #9

    Indy 10 ;/ Complete lack of demos and DOC

    Quote Originally Posted by Setharian
    As a side note, the code you have posted is wrong.
    It was off the top of my head so I'm glad that was it.

  10. #10

    Indy 10 ;/ Complete lack of demos and DOC

    i can't make sinapse work ;/
    .....

    indy9 are working, but im having problem with threads now
    From brazil (:

    Pascal pownz!

Page 1 of 2 12 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
  •