Exemplo n.º 1
0
void openudp_sendDone(OpenQueueEntry_t* msg, owerror_t error) {
   msg->owner = COMPONENT_OPENUDP;
   switch(msg->l4_sourcePortORicmpv6Type) {
      case WKP_UDP_COAP:
         opencoap_sendDone(msg,error);
         break;
      case WKP_UDP_ECHO:
         uecho_sendDone(msg,error);
         break;
      default:
         openserial_printError(COMPONENT_OPENUDP,ERR_UNSUPPORTED_PORT_NUMBER,
                               (errorparameter_t)msg->l4_sourcePortORicmpv6Type,
                               (errorparameter_t)5);
         openqueue_freePacketBuffer(msg);         
   }
}
Exemplo n.º 2
0
void openudp_sendDone(OpenQueueEntry_t* msg, error_t error) {
   msg->owner = COMPONENT_OPENUDP;
   switch(msg->l4_sourcePortORicmpv6Type) {
      case WKP_UDP_COAP:
         opencoap_sendDone(msg,error);
         break;
      /*    
      case WKP_UDP_HELI:
         appudpheli_sendDone(msg,error);
         break;
      case WKP_UDP_IMU:
         appudpgina_sendDone(msg,error);
         break;
      */
      case WKP_UDP_ECHO:
         udpecho_sendDone(msg,error);
         break;
      case WKP_UDP_INJECT:
         udpinject_sendDone(msg,error);
         break;
      case WKP_UDP_DISCARD:
         udpprint_sendDone(msg,error);
         break;
      case WKP_UDP_RAND:
         udprand_sendDone(msg,error);
         break;
      case WKP_UDP_LATENCY:
         udplatency_sendDone(msg,error);
         break;
         
      default:
         openserial_printError(COMPONENT_OPENUDP,ERR_UNSUPPORTED_PORT_NUMBER,
                               (errorparameter_t)msg->l4_sourcePortORicmpv6Type,
                               (errorparameter_t)5);
         openqueue_freePacketBuffer(msg);         
   }
}