Beja Expert Licensed User Longtime User Feb 13, 2017 #1 Hi all, Anyone knows how to get rid of the prefix mode in the b4a-b4j chat example? How to change this line to be without prefix: B4X: astream.InitializePrefix(sp.GetInputStream, True, sp.GetOutputStream, "astream") Thanks in advance
Hi all, Anyone knows how to get rid of the prefix mode in the b4a-b4j chat example? How to change this line to be without prefix: B4X: astream.InitializePrefix(sp.GetInputStream, True, sp.GetOutputStream, "astream") Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2017 #2 B4X: astream.Initialize(sp.GetInputStream, sp.GetOutputStream, "astream") Don't assume that messages will arrive as a single packet. You can use AsyncStreamsText if you are implementing a text based protocol. Upvote 0
B4X: astream.Initialize(sp.GetInputStream, sp.GetOutputStream, "astream") Don't assume that messages will arrive as a single packet. You can use AsyncStreamsText if you are implementing a text based protocol.