[twsocket] Receive size..?

2005-11-01 Thread Kei
if I specify a buffer that is actually not big enough to hold a packet, then what will happen? e.g. var myBuffer: array[0..50] of char; receivedSize: longint; receivedSize := MywSock.receive(myBuffer); if the socket wants to give me 100 bytes but I only have 50.. what will happen? Da

Re: [twsocket] transmission stress test

2005-11-01 Thread Kei
I got it. so this is what I'll do: A> txt 10240 B> (malloc ptrAltogether 10240 bytes; Let sizeRemain = 10240;sizeDone=0) sendtxt A> "010010101010101..." B> (First packet is ready: var ptrTemp: array[0..MAX_PACK] of char; Zero(ptrTemp); if(sizeThisPack = Receive(ptrTemp) > 0)

Re: [twsocket] transmission stress test

2005-11-01 Thread Kei
ou >are in an event of TWSocket. This make it very confusing. > >I try to check it later, but please try to simplify it yourself. In >OnDataAvailable, jsut receive in a buffer on the stack. Then eahter pass >a pointer to the buffer on a function called CommandInterpreter or >Receiv

Re: [twsocket] transmission stress test

2005-11-01 Thread Kei
a clue what's going wrong here? >> >> > >How would you receive help when we don't know anything about your code ! >It is likely that the problem is at the receiving part. > >-- >Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html >-- >[

[twsocket] transmission stress test

2005-11-01 Thread Kei
Hi, this is David. I asked about a method to recognize the "splitted packets" and to join them upon arrival of the last one. So far my protocol works fine, and all the data is assembled in an orderly manner. For large texts or binary data, the clients knows how to handle it as follows: The "Red

Re: [twsocket] OK to Receiving >2GB ?

2005-10-30 Thread Kei
gain, meaning if you >>>have a temporary buffer that is to small, however if you receive on the >>>stack then you can make him (almost) as large you wants. >>> >>> >>> >>> >>> >>>>I certainly don't want to malloc

Re: [twsocket] OK to Receiving >2GB ?

2005-10-30 Thread Kei
fer that is to small, however if you receive on the >stack then you can make him (almost) as large you wants. > > > >>I certainly don't want to malloc 100KB for a TCP packet... >> >> > >See above, you dont need to. > >--- >Rgds, Wilfried [TeamICS

Re: [twsocket] OK to Receiving >2GB ?

2005-10-29 Thread Kei
t. Winsock does not respect packet boundaries, but (see >prior paragraph) there are no megabytes TCP packets. > >You have to receive all data chuncks into a buffer, and when you >received them all then you save to file (or save every packet direct to >disk). There is no problem to know

[twsocket] OK to Receiving >2GB ?

2005-10-29 Thread Kei
Hi! I'm new to ICS! I am designing a simple protocol that will be mainly used locally (as a database server backend)..so I'm guessing I could send up to 2GB of stuff without hassle (BLOBs, for example). Right now I'm just experimenting with the facility for two parties to effectively "talk" to eac