sendMessage: aString
|stream errString isDataAvailable |
stream := SocketStream openConnectionToHostNamed: '127.0.0.1' ��port: 4000 .
stream sendCommand: aString.
isDataAvailable := stream isDataAvailable .
isDataAvailable inspect.
isDataAvailable ifTrue: [ errString := stream nextLineCrLf ��.
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� ��errString inspect.
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� ��errString = '' ifFalse:��
�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� [self error: errString.]] .
stream close.
I have used telnet to test the connection , telnet can receive the data fine and it displays it fine. I have encode the data as bytestring from python with ascii encoding and added both a carriage return and a line feed in the end ? whats wrong ?
I tried most method in socket stream even upToEnd message and none gives back any data.��