TCP/IP Server Receive data with no <CR>

H

harald.wolf

Hi,
i have tried to retrieve data from a measurement device with a Ethernet
Port and TCP/IP Stack. The manual tells me, all send commands
and recieved data ends with <LF> 0x0a. So i programmed a test chat program
with Emarcadero XE4 and the TIdTCP-Clent and -Server component.
This chat program worked fine between to PCs. Sending commands with only
<LF> to the device are also successfull.

The OnExecute Event of the server component only triggers if it receives a
<CR> character (normally <LF><CR>) which never happens.

After houres of googeling and research found no solution and solved this
project with the TIdUDP-Sever/Client components where the OnUDPRead-Event
triggers on several other events.
I also experimented with GNUs netcat command and figured out the same
behaviour.

But i want a solution for TCP/IP communication without <CR> triggered data
processing.
Does a solution C++Builder XE4 VCL Components exist?
With which libraries (boost?), techniques can i solve this issue?
 
V

Victor Bazarov

i have tried to retrieve data from a measurement device with a Ethernet
Port and TCP/IP Stack. The manual tells me, all send commands
and recieved data ends with <LF> 0x0a. So i programmed a test chat program
with Emarcadero XE4 and the TIdTCP-Clent and -Server component.
This chat program worked fine between to PCs. Sending commands with only
<LF> to the device are also successfull.

The OnExecute Event of the server component only triggers if it receives a
<CR> character (normally <LF><CR>) which never happens.

After houres of googeling and research found no solution and solved this
project with the TIdUDP-Sever/Client components where the OnUDPRead-Event
triggers on several other events.
I also experimented with GNUs netcat command and figured out the same
behaviour.

But i want a solution for TCP/IP communication without <CR> triggered data
processing.
Does a solution C++Builder XE4 VCL Components exist?
With which libraries (boost?), techniques can i solve this issue?

Can you re-state the issue in one sentence (ten words or fewer)? Once
you have done that, does it appear like a C++ *language* issue or a
*device programming* issue? If the latter, we can't really help you
here. This is a *language* newsgroup. C++ language does not define
"TCP/IP Stack" or device communication. That is usually left to the
operating system of your choice and therefore to be discussed in a
newsgroup dedicated to that operating system.

There are some other recommendations on the venues for asking questions
in the FAQ, section 5 (see q 5.9). http://www.parashift.com/c++-faq/

If you still think (after perusing the FAQ) that your issue is with C++
language, do post again, and please try to follow the recommendations of
the section 5 of the FAQ (see q 5.8 for example)

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top