TMValidSession Overview Group

The TMValidSession API call determines whether a session is still valid with the specified session handle 'session_handle'. It returns a 1 if the session is still valid, and 0 otherwise. The conditions where a session could become invalid are described in TMExtendedStartSession.


short far pascal TMValidSession(

long session_handle       // 1-Wire network session handle
);

For a description of the above types, see the TMEX Type Descriptions.

Parameters

session_handle

Specifies session handle on an 1-Wire network. The session handle must be set as a result of a call to TMExtendedStartSession.

Return Value

0 => session_handle is no longer valid
1 => session_handle is still valid for port
<0 => TMEX Session Error Return Codes

Code Example

See Also

TMExtendedStartSession, TMEndSession