1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef _WOLFEXAMPLES_H_
- #define _WOLFEXAMPLES_H_
- #include <rt.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- BOOLEAN Catalog(RTHANDLE hProcess, RTHANDLE hObject, LPSTR lpszName);
- void Cleanup(void);
- void Fail(LPSTR lpszMessage, ...);
- DWORD UsecsToKticks(DWORD dwUsecs);
- int wolfExample_TLSServer(int port);
- int wolfExample_TLSClient(const char* ip, int port);
- int wolfExample_TLSLocal(int port);
- typedef enum {
- BEFORE_INIT,
- INIT_BUSY,
- INIT_DONE,
- CLEANUP_BUSY
- } INIT_STATE;
- typedef struct {
- RTHANDLE hMain;
- INIT_STATE state;
- BOOLEAN bCataloged;
- BOOLEAN bShutdown;
- } INIT_STRUCT;
- extern RTHANDLE hRootProcess;
- extern DWORD dwKtickInUsecs;
- extern INIT_STRUCT gInit;
- #ifdef __cplusplus
- }
- #endif
- #endif
|