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
_______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus