aboutsummaryrefslogtreecommitdiff
path: root/src/sp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp')
-rw-r--r--src/sp/protocol/reqrep0/req_test.c2
-rw-r--r--src/sp/protocol/survey0/survey_test.c2
-rw-r--r--src/sp/transport.h6
-rw-r--r--src/sp/transport/udp/udp.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/sp/protocol/reqrep0/req_test.c b/src/sp/protocol/reqrep0/req_test.c
index 17378c89..1da63ffc 100644
--- a/src/sp/protocol/reqrep0/req_test.c
+++ b/src/sp/protocol/reqrep0/req_test.c
@@ -429,7 +429,7 @@ test_req_cancel_abort_recv(void)
// Send req #1 (abc).
NUTS_SEND(req, "abc");
- // Wait for it to get ot the other side.
+ // Wait for it to get to the other side.
NUTS_SLEEP(100);
nng_aio_set_timeout(aio, 5 * SECOND);
diff --git a/src/sp/protocol/survey0/survey_test.c b/src/sp/protocol/survey0/survey_test.c
index bf6fbb08..ac6767ba 100644
--- a/src/sp/protocol/survey0/survey_test.c
+++ b/src/sp/protocol/survey0/survey_test.c
@@ -228,7 +228,7 @@ test_surv_cancel_abort_recv(void)
// Send survey #1 (abc).
NUTS_SEND(surv, "abc");
- // Wait for it to get ot the other side.
+ // Wait for it to get to the other side.
NUTS_SLEEP(100);
nng_aio_set_timeout(aio, 5 * SECOND);
diff --git a/src/sp/transport.h b/src/sp/transport.h
index 6aa2086b..72ce18d7 100644
--- a/src/sp/transport.h
+++ b/src/sp/transport.h
@@ -20,7 +20,7 @@
// protocol-independent fashion. The socket makes individual calls,
// which are expected to block if appropriate (except for destroy), or
// run asynchronously if an aio is provided. Endpoints are unable to
-// call back into the socket, to prevent recusive entry and deadlock.
+// call back into the socket, to prevent recursive entry and deadlock.
//
// For a given endpoint, the framework holds a lock so that each entry
// point is run exclusively of the others. (Transports must still guard
@@ -63,7 +63,7 @@ struct nni_sp_dialer_ops {
// This may be NULL if the dialer does not support TLS.
nng_err (*d_get_tls)(void *, nng_tls_config **);
- // d_set_tls is used to set the TLS configruation to use for the
+ // d_set_tls is used to set the TLS configuration to use for the
// dialer. This may be NULL if this dialer does not support TLS.
nng_err (*d_set_tls)(void *, nng_tls_config *);
@@ -117,7 +117,7 @@ struct nni_sp_listener_ops {
// This may be NULL if the listener does not support TLS.
nng_err (*l_get_tls)(void *, nng_tls_config **);
- // l_set_tls is used to set the TLS configruation to use for listening.
+ // l_set_tls is used to set the TLS configuration to use for listening.
// This may be NULL if this listener does not support TLS.
nng_err (*l_set_tls)(void *, nng_tls_config *);
diff --git a/src/sp/transport/udp/udp.c b/src/sp/transport/udp/udp.c
index e19a5684..41519aa3 100644
--- a/src/sp/transport/udp/udp.c
+++ b/src/sp/transport/udp/udp.c
@@ -726,7 +726,7 @@ udp_recv_creq(udp_ep *ep, udp_sp_creq *creq, nng_sockaddr *sa)
if ((p = udp_find_pipe(ep, creq->us_peer_id, creq->us_sender_id))) {
if ((p->peer_id == 0) || (p->peer != creq->us_type)) {
// we don't expect this -- a connection request from a
- // peer while we have an oustanding request of our own.
+ // peer while we have an outstanding request of our own.
// We *could* compare the sockaddrs to see if they
// match and if so then treat this as just a dueling
// connection. but for now we just discard it -- we'll