Shadow Network Framework  0.0.2-alpha
C Server Library for Shadow Network Framework
Loading...
Searching...
No Matches
cmds.h File Reference

This file is used to define functions that would be called either by default or Base Command OPCode's Functions. More...

Go to the source code of this file.

Functions

SNF_RQSTsnf_cmd_invalid_error_protocol (SNF_RQST *)
 Called when an opcode command has been called by the client that must'nt be called.
 
SNF_RQSTsnf_cmd_invalid_unregistred (SNF_RQST *)
 Called when the client has called an opcode that isn't registred on the server.
 
SNF_RQSTsnf_cmd_invalid_unimplemented (SNF_RQST *)
 Called when the client has called a registred opcode, but has no function to call in the server.
 
SNF_RQSTsnf_cmd_snf_ver (SNF_RQST *)
 Called when the client requests the server's version.
 

Detailed Description

This file is used to define functions that would be called either by default or Base Command OPCode's Functions.

Warning
Do not call any function defined here manually

Function Documentation

◆ snf_cmd_invalid_error_protocol()

SNF_RQST * snf_cmd_invalid_error_protocol ( SNF_RQST * )
extern

Called when an opcode command has been called by the client that must'nt be called.

Parameters
SNF_RQSTClient's Original Request
Returns
The Request to be Sent

◆ snf_cmd_invalid_unregistred()

SNF_RQST * snf_cmd_invalid_unregistred ( SNF_RQST * )
extern

Called when the client has called an opcode that isn't registred on the server.

Parameters
SNF_RQSTClient's Original Request
Returns
The Request to be Sent

◆ snf_cmd_invalid_unimplemented()

SNF_RQST * snf_cmd_invalid_unimplemented ( SNF_RQST * )
extern

Called when the client has called a registred opcode, but has no function to call in the server.

Parameters
SNF_RQSTClient's Original Request
Returns
The Request to be Sent

◆ snf_cmd_snf_ver()

SNF_RQST * snf_cmd_snf_ver ( SNF_RQST * )
extern

Called when the client requests the server's version.

Parameters
SNF_RQSTClient's Original Request
Returns
The Request to be Sent