Board index » delphi » CRLF and TCP

CRLF and TCP

I need to send a

CRLF.CRLF

down the line using the TCP component in Delphi2 to tell the server at
the other end I have finished my send.

How do I do it.

I have tried Tcp1.Senddata(#13 + '.' + #13)

but it doesn't seem to respond to it.

Email me your thoughts to

mana...@proesc.conxion.com.au
 EMAIL:  mana...@proesc.conxion.com.au                            
 WWW:    http://proesc.conxion.com.au/default.htm  

*TRY OUR SALES-NET * SEND MAIL TO sale-...@proesc.conxion.com.au * for info*
(001) Logic Error CLINTON.SYS: Truth table missing

 

Re:CRLF and TCP


Quote
On Sun, 01 Sep 1996 21:39:22 GMT, mana...@proesc.conxion.com.au (Fatman) wrote:
>I need to send a

>CRLF.CRLF

>down the line using the TCP component in Delphi2 to tell the server at
>the other end I have finished my send.

>How do I do it.

>I have tried Tcp1.Senddata(#13 + '.' + #13)

>but it doesn't seem to respond to it.

>Email me your thoughts to

>mana...@proesc.conxion.com.au
> EMAIL:  mana...@proesc.conxion.com.au                            
> WWW:    http://proesc.conxion.com.au/default.htm  

>*TRY OUR SALES-NET * SEND MAIL TO sale-...@proesc.conxion.com.au * for info*
>(001) Logic Error CLINTON.SYS: Truth table missing

You left out the line feeds. Try: Tcp1.Senddata(#13 + #10 + '.' + #13 + #10)
That may work. I don't know that the TCP component adds LF to each CR.
See my page at:
http://www.dimensional.com/~richmacd/bcbest.html for "Boulder County's Best"
(not to be confused with "The Best of Boulder")

Re:CRLF and TCP


Quote
richm...@dimensional.com (Richard MacDonald) wrote:
>On Sun, 01 Sep 1996 21:39:22 GMT, mana...@proesc.conxion.com.au (Fatman) wrote:
>>I need to send a

>>CRLF.CRLF

>>down the line using the TCP component in Delphi2 to tell the server at
>>the other end I have finished my send.

>>How do I do it.

>>I have tried Tcp1.Senddata(#13 + '.' + #13)

>>but it doesn't seem to respond to it.

>>Email me your thoughts to

>>mana...@proesc.conxion.com.au
>> EMAIL:  mana...@proesc.conxion.com.au                            
>> WWW:    http://proesc.conxion.com.au/default.htm  

>>*TRY OUR SALES-NET * SEND MAIL TO sale-...@proesc.conxion.com.au * for info*
>>(001) Logic Error CLINTON.SYS: Truth table missing
>You left out the line feeds. Try: Tcp1.Senddata(#13 + #10 + '.' + #13 + #10)
>That may work. I don't know that the TCP component adds LF to each CR.

I am using the tcp control and have found that you have to do the
above code as the control doesn't add it.

Other Threads