Topic Path: Symbol Reference > Classes > TIdTCPConnection Class > TIdTCPConnection Properties > Socket Property
ContentsIndexHome
PreviousUpNext
TIdTCPConnection.Socket Property

Provides access to the TIdIOHandlerSocket for the connection.

property Socket: TIdIOHandlerSocket;

Socket is a read-only TIdIOHandlerSocket property that represents the socket-based IOHandler for the connection to the peer. Socket is updated when the IOHandler for the connection is assigned in the protected SetIOHandler method. 

Socket can be used to access the properties and method specific to the socket handle in TIdIOHandlerSocket

Please note that Socket will contain the value Nil if an IOHandler is assigned that does not derive from TIdIOHandlerSocket.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.