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 ?
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!
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.
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.
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>
I will try indy9
What about synapse someone have some demo ?
From brazil (:
Pascal pownz!
Originally Posted by BrainerIt really isn't a complex thing. If you want to know these things try working with streams and archivers. You'll learn fast.Code:var bytes: TBytes; begin SetLength(bytes, stream.Length); Stream.Read(bytes, stream.Length); end;
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: TBytes; begin SetLength(bytes, stream.Length); Stream.Read(bytes[0], stream.Length); end;
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 -
It was off the top of my head so I'm glad that was it.Originally Posted by Setharian
i can't make sinapse work ;/
.....
indy9 are working, but im having problem with threads now
From brazil (:
Pascal pownz!
Bookmarks