Hi partners!
We have a vb socket client and a socket host (as400)
my co-worker has this code in vb.net
------------------------------
While True
Try
BufferDeLectura = New Byte(1024) {}
Stm.Read(BufferDeLectura, 0, BufferDeLectura.Length)
RaiseEvent DatosRecibidos(Encoding.ASCII.GetString(BufferDeLectura))
Catch e As Exception
Exit While
End Try
End While
------------------------------
I think is a never ending cycle... my co-worker say that when the AS400 close the stream he get out of the cycle, that's correct??? it's true that answer??
in AS400 I close the socket and it's waiting for the acknoledge of the remote client
what do u think about this???
I know that a client only do a simple stream.read and not in a cycle
We have a vb socket client and a socket host (as400)
my co-worker has this code in vb.net
------------------------------
While True
Try
BufferDeLectura = New Byte(1024) {}
Stm.Read(BufferDeLectura, 0, BufferDeLectura.Length)
RaiseEvent DatosRecibidos(Encoding.ASCII.GetString(BufferDeLectura))
Catch e As Exception
Exit While
End Try
End While
------------------------------
I think is a never ending cycle... my co-worker say that when the AS400 close the stream he get out of the cycle, that's correct??? it's true that answer??
in AS400 I close the socket and it's waiting for the acknoledge of the remote client
what do u think about this???
I know that a client only do a simple stream.read and not in a cycle