473,386 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Force IP Port Flush

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
1 3123
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Madhusudan Singh | last post by:
Hi I have a python application that writes a lot of data to a bunch of files from inside a loop. Sometimes, the application has to be interrupted and I find that a lot of data has not yet been...
3
by: MLH | last post by:
I found some code Dev Ashish posted nearly a decade ago in response to someone's inquiry describing their need to dial a number, monitor call progress and determine whether it was busy. This was...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
1
by: Nick Zdunic | last post by:
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...
5
by: gaubo79 | last post by:
I am wishing to force the Open|Save dialog box for a PDF and Excel file. I am using the following code: Response.Clear(); Response.ContentType = "application/octet-stream";...
4
by: H J van Rooyen | last post by:
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from...
0
by: jinnareddy | last post by:
Hi, I'm unable to download a file that is having a 2-byte char in its name (e.g.テ) using force download option. Though, am able to download file names involving ASCII chars. I have tried URL...
2
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
2
by: colin | last post by:
Hi, Im having a tiresome amount of trouble with using a bluetooth serial link. The receiving end is a bluetooth-rs232 module conected to my embeded system. The PC has a little usb bluetooth...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.