I think your best bet would be to set the stream to binary
and then send the byte 255.
If you want to use a character, you definitely don't want Character
digitValue:. That's not at all the same thing as saying that you want a
character whose code in some encoding is 255, and in fact the character
you get that way is Unicode 16r136, not 16rFF. You'd probably want to use
#value: or codePoint:. But even then, you have no guarantee that that
encodes to the value 255 in the underlying byte stream. If you want a
byte, use a byte, don't rely on the character.
At 05:10 AM 2010-07-26, HaJo wrote:
Hi,
i try to programm a Telnet-Connection to an external Switch. That works
fine
until i want to send
an Command at the CLI-prompt to the switch. I have to send
Character digitvalue 255 followed by the CLI command with
ExternalConnection
writeStream.
Here programm terminates with an "Unhandled Exception: This
character is not
supported by this class of String"
I tried all possible StreamEncoders for ExternalConnection withEncoding,
but
that doesn't help.
Cheers
Harald
--
View this message in context:
http://forum.world.st/Sending-Telnet-IAC-Character-for-a-Command-to-an-ExternalConnection-tp2302069p2302069.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
--
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc