source file here `connectivity-example-app.c <https://gerrit.zephyrproject.org/r/gitweb?p=zephyr.git;a=blob;f=doc/subsystems/networking/connectivity-example-app.c>`_
This example application begins with some initialization. (Use this as an
example; you may need to do things differently in your own application.)
..literalinclude:: connectivity-example-app.c
:linenos:
:language:c
:lines:2-54
After initialization, first thing application needs to create a context.
Context is similar to a socket.
..literalinclude:: connectivity-example-app.c
:linenos:
:language:c
:lines:57-66
Then you need to define the local end point for a connection.