This question has been answered. The callback is called in the context of the networking thread.
TCP callbacks are called from the Networking worker thread. Basically it would not be called from the context of the application. It is available on NetX also. Since this is called from another context, you need to ensure that any data accessed both by app thread and the call back are properly handled.