Board index » delphi » List of users of TidTCPServer
Juan Ahuir Ferrer
![]() Delphi Developer |
Juan Ahuir Ferrer
![]() Delphi Developer |
List of users of TidTCPServer2003-08-01 11:31:08 PM delphi157 I'm developing a chat application using TIdTCPServer and TIdTCPClient. I have one server socket ( TIdTCPServer ) and many clients ( TIdTCPClient ) that connect and disconnect from the server. I need to obtain the name of the users connected to the server actually. How can i do this ?? Any property or method of the TIdTCPServer component ?? Thanks in advance. |
greybeard
![]() Delphi Developer |
2003-08-02 09:30:55 PM
Re:List of users of TidTCPServer
Hi, Juan
I use Delphi6 and Indy 8, and in following OnConnect unit I obtain an IP address or computer name of the client: ---------------------------- procedure TForm1.IdTCPServer1Connect(AThread: TIdPeerThread); begin Writeln(logfile,AThread.Connection.Binding.PeerIP, ' connected: ', DateTimeToStr(Now)); end; ---------------------------- But Indy 9 is a little bit different, so look for similar function there. Best regards, Vlastik "Juan Ahuir Ferrer" <XXXX@XXXXX.COM>píše v diskusním příspěvku QuoteI'm developing a chat application using TIdTCPServer and TIdTCPClient. I |