Hello [EMAIL PROTECTED]!
On 21-Dic-99, you wrote:
d> as you can see, the length is 16 (3 is the message code) but
d> the data pulled back is
d> "[EMAIL PROTECTED]" is only 15 bytes long, the 'm' from .com is
d> received when the
d> script is expecting the next response.
d> Can any one see anything that I'm doing incorrectly or might
d> this be a bug ????
There's a chance that the data is sent as two packets, and you get
the first packet only with read-io. When you are getting data from
a port, you should use something like:
data-buffer: make binary! data-length
while [data-length > 0] [
data-length: data-length - read-io port data-buffer data-length
]
; now data-buffer contains your data.
Regards,
Gabriele.
--
o--------------------) .-^-. (----------------------------------o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ / http://www.amyresource.it/AGI/ |
o--------------------) `-v-' (----------------------------------o