Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPConnection.Socket Property

Provides access to the TIdIOHandlerSocket for the connection.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.