Hello Wes,
In addition to the advice of Francois is what I often do if designing a
protocol that is both ascii data (for commands) and binary data packets,
is to preceide the packet with a length in hexadecimal form (byte, word
or dword). Wy ? Because if most of the data is ascii command then it
m
> It's easy with LineMode on - ICS only forwards the data on when it
> receives a delimeter. But when it's off, it seems as though anything
> other than file sends and receives (because you don't really act on the
> file stream, you just send or recieve its bytes) proves to be a
> difficult task.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wilfried Mestdagh wrote:
>>Again, as I've seen in archive here before, what happens if my
>>information gets processed in two batches (packets)? When do I decide
>>OK, enough is enough, and continue on processing? Is TWSocket
>>neccessarily fit for b
Hello Wesley,
> If I have LineMode off, that means I have to
> either 1) look for a terminator or 2) accept many bytes and then act
> on the information I have so far, correct?
yes
> Again, as I've seen in archive here before, what happens if my
> information gets processed in two batches (pack
OK. I understand what you're saying, which for me is a definite step
up. That being said, when would I actually act on the data that I have
received from the socket? If I have LineMode off, that means I have to
either 1) look for a terminator or 2) accept many bytes and then act
on the informa
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Francois Piette wrote:
> Your ReadFully won't work. You must think event driven. When OnDataAvailable
> is triggered, you must
> read data but you can't loop waiting for so much data to come. If you have
> not received enough data,
> just get therece
ulti-tier framework, freeware)
http://www.overbyte.be
- Original Message -
From: "Wesley Spadola" <[EMAIL PROTECTED]>
To:
Sent: Monday, May 30, 2005 10:39 PM
Subject: [twsocket] Non-LineMode Protocol Sending and Receiving
> -BEGIN PGP SIGNED MESSAGE-
> Hash: S
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I am experimenting with writing a program that does not rely on LineMode
to send and receive data. The following procedure is attached to a
server component:
TriggerWriteDebug is my own event, which at this time only outputs text
to a TMemo.
Also,