Telnet and delphi sockets

Posted by ceilingcat on January 28, 2009

I have a form with a TServerSocket and a memo.
To add text to the form I am using Memo1.Lines.Add(Socket.ReceiveText) inside the OnClientRead event.
When I telnet to the running program, the text I type from the telnet client is displayed in the memo as a series of lines of one character each. For instance,
if I type 'hello' in the telnet client the text in the memo is displayed as
h
e
l
l
o

I don't want the text to display in this manner! Any advice on the matter will be welcome.

Related articles

       

Follow Ups

Post a Followup

Name:
Password:

Subject:

Comments:

DelphiLand Club members: enter your Membership password.
Guests can get a Forum Guest password by subscribing to the DelphiLand Newsletter.