+ * User request to send data via a UDP connection
+ *
+ * @v conn UDP connection
+ *
+ * This function allocates buffer space and invokes the function's senddata()
+ * callback. The callback may use the buffer space
+ */
+int udp_senddata ( struct udp_connection *conn ) {
+ conn->tx_pkb = pkb_alloc ( UDP_MAX_TXPKB );
+ if ( conn->tx_pkb == NULL ) {
+ DBG ( "Error allocating packet buffer of length %d\n",
+ UDP_MAX_TXPKB );
+ return -ENOMEM;
+ }
+ conn->udp_op->senddata ( conn, conn->tx_pkb, pkb_len ( conn->tx_pkb ) );
+ return 0;
+}
+
+
+/**
+ * Transmit data via a UDP connection