Modem library
The Modem library is the primary interface for operating the nRF9160 modem, establishing the LTE-M and NB-IoT connections, and receiving the position data (GPS). The library aims to be compatible with the POSIX socket APIs to simplify writing and porting of existing networking applications.
To get started with socket programming, you can check out some introductions and tutorials, such as Beej’s Guide to Network Programming.
The Modem library is portable, you can use it with any RTOS. For more information, see Porting to an OS.