By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,220 Members | 1,091 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,220 IT Pros & Developers. It's quick & easy.

Force IP Port Flush

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
when u sending messages to server. did u added vbcrlf/? u should have
read RFC

Nick Zdunic wrote:
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


Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.