Hi,
I need to learn about Interfaces and using them - mostly for Net Talk Application.
NT14 has a handy Interface called:
iNetSessions Interface()
Save PROCEDURE (),Long,Proc,Virtual
Save PROCEDURE (*String p_SessionID),Long,Proc,Virtual
Load PROCEDURE (),Long,Proc,Virtual
_GetSessions PROCEDURE (Long pFilter, String pFilterData, Long pOffset, Long pLimit, StringTheory rResult),Virtual
_SessionRecords PROCEDURE (),Long,Virtual
_SessionExpired PROCEDURE (Long pRecordNumber),String,Virtual
_SessionExpired PROCEDURE (*String p_SessionID),Byte,Virtual
_SessionExpired PROCEDURE (),Byte,Virtual
… a bunch more interfaces.
The procedures are defined in netwebsessions.inc and netwebsessions.clw
I tried this code in my NT app::
Myint CLASS,IMPLEMENTS(iNetSessions)
END
However, I get 60 Procedure is not defined error messages.
I want to implement two of the procedures in order to see what is in my session queues:
NetSessionsQueue.iNetSessions._SessionRecords PROCEDURE()
code
return records(self._sessionqueue)
!------------------------------------------------------------------------------
NetSessionsQueue.iNetSessions._SessionDataRecords PROCEDURE()
code
return records(self._sessiondataqueue)
Any help will be appreciated!
Thanks,
Ron