N
Nick Zdunic
I have a scenario where I'm sending data out an IP port to a server.
The data would go out like this:
012345689
One one scenario I'm sending several messages to the server in very quick
sucession.
For example (_client is declared as TcpClient) :
Dim writer As New IO.StreamWriter(_client.GetStream)
for i = 1 to 50
writer.Write("01234589")
writer.Flush()
next
The server gets a bundled up message up to the length of the buffer. So if
the Buffer is 50 chars then it will receive
012345689012345689012345689012345689012345689
I would rather have the server receive each message as a separate item. So
it would be more like:
Server Receives: 012345689
Server Receives: 012345689
Server Receives: 012345689
Is there a setting which force data to be sent rather than bundling it up.
Thanks,
Nick
The data would go out like this:
012345689
One one scenario I'm sending several messages to the server in very quick
sucession.
For example (_client is declared as TcpClient) :
Dim writer As New IO.StreamWriter(_client.GetStream)
for i = 1 to 50
writer.Write("01234589")
writer.Flush()
next
The server gets a bundled up message up to the length of the buffer. So if
the Buffer is 50 chars then it will receive
012345689012345689012345689012345689012345689
I would rather have the server receive each message as a separate item. So
it would be more like:
Server Receives: 012345689
Server Receives: 012345689
Server Receives: 012345689
Is there a setting which force data to be sent rather than bundling it up.
Thanks,
Nick