Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Inet telnet error

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

cem zafer demirsoy

Hi all,

I have tested the telnet test client example and changed a little bit.

procedure TFormMain.TelnetConnect(aSocket: TLSocket);
begin
MemoText.Append('Connected!');
user:='blabla' + #13#10;
passwd:='blabla' + #13#10;
if Telnet.Connect=true then
begin
Telnet.SendMessage(user);
Telnet.SendMessage(passwd);
MemoText.Append('User Authentication is complete!');
end;
end;

when i execute the code I get this error message.

Connected!
User Authentication is complete!
Connected!
Shutdown error [10057]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
User Authentication is complete!
Error on connect: connection refused

I just want to send username and password information to the server side, and execute some commands from there.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080821/bedd1478/attachment.html

Reply by email