Thank you for the fast reply. I tried the AsyncStreams, but AStream_NewData is never fired.
This I am doing:
- CallSub2(Starter, "Connect", sRequest) 'or CallSubDelayed2
- Socket1.Connect(host, port, 20000)
- in the Socket1_Connected event: AStreams.InitializePrefix(Socket1.InputStream, False, Socket1.OutputStream, "AStreams")
- Dim bBytes() As Byte = sText.GetBytes("UTF8") : AStreams.Write(bBytes)
But AStreams_NewData is not fired. Any idea, what I am doing wrong?
Update: The AStream_Error is fired. Now trying to get the reason ...