Socket.isOccupied

bool isOccupied()

Determines whether or not the socket has an embedded plug.

Returns

TRUE if a plug is embedded in the socket