Add network connection doc

Explain how to use the network connection API and its bitmask values.