[EMAIL PROTECTED] wrote:
> so. how do i make 200 occupy 4 bytes ?
Did you double-check that they didn't want "0200" in ascii
in the message?
As in:
STX0200ENX
Because that's always possible. And, if you're _lucky_, they designed
the innards of the message so that "ENX" ca
indeed i did not. thanks for the tip.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> ok, i am stuck again.
>
> from the docs, the byte stream is supposed to look like this:
>
> 'S' 'T' 'X' [length indicator] [message type] [message] 'E' 'N' 'X'
>
> the length indicator it says is a four byte integer number of a value N
> ( N would be how long the me
ok, i am stuck again.
from the docs, the byte stream is supposed to look like this:
'S' 'T' 'X' [length indicator] [message type] [message] 'E' 'N' 'X'
the length indicator it says is a four byte integer number of a value N
( N would be how long the message body is )
the message type comes f
i'm not sure, but its kinda been a pain in the hinder for a newbie like
me to find it in their docs.
thanks for all the help guys, let you know how it goes
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> What do you bet the server software was written by someone
> who thought ASCII STX meant literally the characters "STX"?
Wouldn't explain the "ENX" instead of "ETX".
> I've seen stupider things.
I give it 25% probability of being what you said, and 75% probability
that
[EMAIL PROTECTED] wrote:
> i know that those characters exist, the docs say that the server does
> not want the special "ETX" and "STX" characters, but the 3 ascii
> characters "STX" and "ENX" i am not sure why.
What do you bet the server software was written by someone
who thought ASCII STX mean
i know that those characters exist, the docs say that the server does
not want the special "ETX" and "STX" characters, but the 3 ascii
characters "STX" and "ENX" i am not sure why.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> ok, part of what i have to do is know how many bytes will be sent. in
> ascii is it one byte per character ?
> like "password" would be 8 bytes long?
Yes, but when someone says ASCII STX, they usually mean
the single byte control character. This is a non-printable chara
ok, part of what i have to do is know how many bytes will be sent. in
ascii is it one byte per character ?
like "password" would be 8 bytes long?
--
http://mail.python.org/mailman/listinfo/python-list
i think like byte 1 = 'S'
byte 2 = 'T'
and byte 3 = 'X'
still new at this, and thanks for the references
-sk
--
http://mail.python.org/mailman/listinfo/python-list
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> for example , to send a request, the first three bytes have to be ascii
> "STX"
> then there has to be 4 bytes that show the length of the message
> then the actual message
> then the last three bytes have to be "ENX"
>
> also all int
Hello there,
i need to write a script that can transfer info back and forth with a
data server at so-and-so ip.
i have Programming Python, which covers socket programming. So thats
cool. But what i need to know how to do is make a message in ascii that
is what the server is looking for.
for examp
13 matches
Mail list logo