I beleive this is not enforcing prefix mode yet I receive the following exception.
<code>
...Globals
Private aStream As AsyncStreams
Sub Client_Connected (Successful As Boolean)
aStream.InitializePrefix(Client.InputStream, False, Client.OutputStream, "astream")
...
...
</code>
** Note that even though false is coded it will still trigger datareceived event after receiving 104-500 bytes of data and not consistently either.
Log
01/03/2023 00:09:07
aStream Error: (RuntimeException) java.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol.
I have read a little on AsyncStreamsText however it says you can do text only.
I need some clarification on this "Text Only" bit... Char 32-127 ? or 0-255 but RAW ASCII with no encoding ????????
I am talking to an old Win2k server with a vb6 enterprise Ed Server app. I have already discovered that I have to use the following to get the correct string at the server end from b4a.
<code>
SendData(SockBuffer(0).GetBytes("ISO-8859-1"))
</code>
So the question is, Will AsyncStreamsText send ASCII 0-255 ...... 00-FFh ?