SFENCE Wiki
The SFENCE dynamic library is an interface for writing programs.
Status: Beta
Brought to you by:
sfence
typedef enum eSFENCE_Bool SFENCECALL (*fProtocol_Protocol_Check)(struct sProtocol_Protocol_Intern *ps_protocol);
| Parameter | Meaning |
|---|---|
| ps_protocol | pointer of struct sProtocol_Protocol_Intern. |
| Value | Meaning |
|---|---|
| eSFENCE_Bool_True, eSFENCE_Bool_Success | any message can be sent or received |
| eSFENCE_Bool_False | no message can be sent or received |
| eSFENCE_Bool_Fail | it means that there was happend some critical error durring checking protocol |
fProtocol_Protocol_Check function is used for check protocol state.
It is good idea to use this driver function like core protocol function. You can receiving and sending data durring calling of this function.
Return eSFENCE_Bool_Fail when connection failed, nonsense data was received, internal driver error happen or something similar.
| Caller | condition | meaning |
|---|---|---|
| Protocol_Protocol_Check | always | protocol check |
Wiki: Basic:DriverObject:Intern
Wiki: Object:Protocol_Protocol:Function:Check
Wiki: Object:Protocol_Protocol