diff --git a/examples/gcoap/gcoap_cli.c b/examples/gcoap/gcoap_cli.c index 2e0caeb702d8..4645c61f3aef 100644 --- a/examples/gcoap/gcoap_cli.c +++ b/examples/gcoap/gcoap_cli.c @@ -196,7 +196,7 @@ static size_t _send(uint8_t *buf, size_t len, char *addr_str, char *port_str) return 0; } - bytes_sent = gcoap_req_send2(buf, len, &remote, _resp_handler); + bytes_sent = gcoap_req_send(buf, len, &remote, _resp_handler); if (bytes_sent > 0) { req_count++; } diff --git a/sys/include/net/gcoap.h b/sys/include/net/gcoap.h index 37c1960ee913..0099119117fd 100644 --- a/sys/include/net/gcoap.h +++ b/sys/include/net/gcoap.h @@ -110,7 +110,7 @@ * If no payload, call only gcoap_request() to write the full request. If you * need to add Options, follow the first four steps in the list above instead. * - * Finally, call gcoap_req_send2() with the sum of the metadata length and + * Finally, call gcoap_req_send() with the sum of the metadata length and * payload length, the destination endpoint, and a callback function for the * host's response. * diff --git a/sys/net/application_layer/cord/ep/cord_ep.c b/sys/net/application_layer/cord/ep/cord_ep.c index 2e2d84ee1a5e..f9b733114d45 100644 --- a/sys/net/application_layer/cord/ep/cord_ep.c +++ b/sys/net/application_layer/cord/ep/cord_ep.c @@ -149,7 +149,7 @@ static int _update_remove(unsigned code, gcoap_resp_handler_t handle) ssize_t pkt_len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE); /* send request */ - gcoap_req_send2(buf, pkt_len, &_rd_remote, handle); + gcoap_req_send(buf, pkt_len, &_rd_remote, handle); /* synchronize response */ return _sync(); @@ -221,7 +221,7 @@ static int _discover_internal(const sock_udp_ep_t *remote, coap_hdr_set_type(pkt.hdr, COAP_TYPE_CON); gcoap_add_qstring(&pkt, "rt", "core.rd"); size_t pkt_len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE); - res = gcoap_req_send2(buf, pkt_len, remote, _on_discover); + res = gcoap_req_send(buf, pkt_len, remote, _on_discover); if (res < 0) { return CORD_EP_ERR; } @@ -288,7 +288,7 @@ int cord_ep_register(const sock_udp_ep_t *remote, const char *regif) pkt_len += res; /* send out the request */ - res = gcoap_req_send2(buf, pkt_len, remote, _on_register); + res = gcoap_req_send(buf, pkt_len, remote, _on_register); if (res < 0) { retval = CORD_EP_ERR; goto end; diff --git a/sys/net/application_layer/cord/epsim/cord_epsim.c b/sys/net/application_layer/cord/epsim/cord_epsim.c index 6f8d479652e0..d220a6c9e8a7 100644 --- a/sys/net/application_layer/cord/epsim/cord_epsim.c +++ b/sys/net/application_layer/cord/epsim/cord_epsim.c @@ -67,7 +67,7 @@ int cord_epsim_register(const sock_udp_ep_t *rd_ep) /* finish, we don't have any payload */ ssize_t len = gcoap_finish(&pkt, 0, COAP_FORMAT_NONE); _state = CORD_EPSIM_BUSY; - if (gcoap_req_send2(buf, len, rd_ep, _req_handler) == 0) { + if (gcoap_req_send(buf, len, rd_ep, _req_handler) == 0) { return CORD_EPSIM_ERROR; } diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index 33a3fd67cd27..7441e6f56267 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -172,7 +172,7 @@ static void _listen(sock_udp_t *sock) uint8_t open_reqs = gcoap_op_state(); /* We expect a -EINTR response here when unlimited waiting (SOCK_NO_TIMEOUT) - * is interrupted when sending a message in gcoap_req_send2(). While a + * is interrupted when sending a message in gcoap_req_send(). While a * request is outstanding, sock_udp_recv() is called here with limited * waiting so the request's timeout can be handled in a timely manner in * _event_loop(). */ @@ -783,7 +783,7 @@ size_t gcoap_req_send(const uint8_t *buf, size_t len, /* timeout may be zero for non-confirmable */ if ((memo != NULL) && (res > 0) && (timeout > 0)) { - /* We assume gcoap_req_send2() is called on some thread other than + /* We assume gcoap_req_send() is called on some thread other than * gcoap's. First, put a message in the mbox for the sock udp object, * which will interrupt listening on the gcoap thread. (When there are * no outstanding requests, gcoap blocks indefinitely in _listen() at