finally start implementing callbacks

threads
Gernot Kranz 4 months ago
parent 8b7d3fbd9a
commit 9c536496bc

@ -1,6 +1,6 @@
#include "pEpTransportUDP.h"
#define SERVERPORT "4950" // the port we will use
#define SERVERPORT "4950" // the default port we will use
#define MAXBUFLEN 1501
static int socki_s, socki_r; // Socket handlers

@ -41,20 +41,17 @@ bool longmsg_supported();
bool longmsg_formatted_supported();
PEP_text_format native_text_format();
//PEP_transport_id id;
PEP_transport_id id;
// The registered callback functions
//CBStatusChange cb_statuschange;
//CBSendToResult cb_sendto_result;
//CBIncomminMessage cb_incomming_message;
signal_status_change_t cb_statuschange;
signal_sendto_result_t cb_sendto_result;
signal_incoming_message_t cb_incomming_message;
//bool cb_statuschange_registered;
//bool cb_sendto_result_registered;
//bool cb_incomming_message_registered;
bool cb_statuschange_registered;
bool cb_sendto_result_registered;
bool cb_incomming_message_registered;
bool allCallbacksRegistered();
void throwInvalidState();
//int socki;
#endif // PEPUDPTRANSPORT_HH

Loading…
Cancel
Save