Shadow Network Framework
0.0.2-alpha
C Server Library for Shadow Network Framework
|
To include this library use
We have a (main.c
) that uses the SNF Library.
-lsnf
with either the -lm -luuid -lpthread
linkers are libraires needed for the normal working of SNF
The general idea behind SNF is that it sends and receives Requests that have OPCode that define what function to call and automatically handles them behind the scenes on a separate Thread Pool. Currently as of 0.0.2-alpha version there is not much you can customize other than to know that it works to some degree and assign new OPCodes( though useless ), the future version will allow you for more customization. Currently the Shadow Network Framework, receives Requests on it's own and calls the assigned function.
Shadow Network Framework is based on an Unnamed Protocol ( Not yet named ) where it sends variables in one buffer
This part could be
It is a series of 4 OPCode Members , 1 of each Rank, Ranks are the following (In order from highest to lowest)
There is by default Some Base OPcode Members which are required for normal functioning of the framework.
See the base OPCode Member in opcode.h
This opcode is used to set the server to execute certain functions depending on the values Given there. See SNF_opcode_t::SNF_opcode_struct
See more about OPCode's Structure
The Contents are Strings that are Separated by a character called UNIT_SCEPARATOR
The limitation of treating the arguments as string will be problematic when you want to send binary data, this will of course be changed in future releases , but for now remember Arguments are strings.