Hello,
I open a socket for reading asynchroneously:
Stream.Initialize (Socket1.InputStream, Socket1.OutputStream, "Stream")
Sub Stream_NewData(Buffer() As Byte) is then called when the server flushes its data (= OK)
But I want to keep the socket open and read the next data.
How do I accomplish this ?
The NewData is not called automatically for a second time and calling
Stream.Initialize (Socket1.InputStream, Socket1.OutputStream, "Stream") again results in a nullpointer exception.
Thanks !
I open a socket for reading asynchroneously:
Stream.Initialize (Socket1.InputStream, Socket1.OutputStream, "Stream")
Sub Stream_NewData(Buffer() As Byte) is then called when the server flushes its data (= OK)
But I want to keep the socket open and read the next data.
How do I accomplish this ?
The NewData is not called automatically for a second time and calling
Stream.Initialize (Socket1.InputStream, Socket1.OutputStream, "Stream") again results in a nullpointer exception.
Thanks !