Shadow Network Framework  0.0.2-alpha
C Server Library for Shadow Network Framework
Loading...
Searching...
No Matches
SNF's Network

Starting

After Setting up all the parts you went through previously all you need to do now is to Start your network and start accepting clients simply by calling snf_network_init

// Start The Framework
// Do whatever you want.
void snf_network_init()
Initializes the Network Framwork.

Note however that the thread that calls snf_network_init will not be blocked by the function so if you want to block till the connection, this is best if you're running this from a GUI framework or something that doesnt require to block

If you want to block then use snf_network_join

void snf_network_join()
See snf_thpool_join.

Stopping

There is no proper way of stopping the network framework as of this version