/*! \file */ #ifndef PACKET_H #define PACKET_H #include #include #include #include #include "libqnxr.h" #include #if __WINDOWS__ #include #if !__CYGWIN__ #include #endif #endif int qnxr_send_nak (libqnxr_t *instance); int qnxr_send_ch_reset (libqnxr_t *instance); int qnxr_send_ch_debug (libqnxr_t *instance); int qnxr_send_ch_text (libqnxr_t *instance); /*! * \brief sends a packet sends a packet to the established connection * \param instance the "instance" of the current libqnxr session * \returns a failure code (currently -1) or 0 if call successfully */ int qnxr_send_packet (libqnxr_t *instance); /*! * \brief Function reads data from the established connection * \param instance the "instance" of the current libqnxr session * \returns a failure code (currently -1) or 0 if call successfully */ int qnxr_read_packet (libqnxr_t *instance); #endif