From d25fead3a8b8779f993bc6d987ff6e9e82f4486d Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Mon, 14 Jan 2019 22:16:48 +0300 Subject: [PATCH] Fix spelling errors --- doc/architecture.txt | 2 +- doc/extensions.txt | 2 +- src/core/config.xml | 2 +- src/network/connection.h | 2 +- src/network/network.h | 2 +- src/util/rbtree.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/architecture.txt b/doc/architecture.txt index 19d1163..2d3a5ea 100644 --- a/doc/architecture.txt +++ b/doc/architecture.txt @@ -67,7 +67,7 @@ Accepting new users | | | | V | | --------------------- --------------------- - | | Send password | ------> | Reveive and check | + | | Send password | ------> | Receive and check | | | request, if needed| | password. | | --------------------- --------------------- | | diff --git a/doc/extensions.txt b/doc/extensions.txt index 96d7b4f..12cf837 100644 --- a/doc/extensions.txt +++ b/doc/extensions.txt @@ -28,7 +28,7 @@ The UDP packet SHOULD be echoed by the hub. This UDP packet should contain simply 'HECH {cid} {token}' (Hub echo). The hub should send a packet containing the token back: -'IECH {token} {host:port}', aswell as the same message via TCP. +'IECH {token} {host:port}', as well as the same message via TCP. If the client receives the message via UDP, it should now be able to determine the type of NAT. If the client receives the message via TCP only it knows it has a firewall blocking incoming communication. diff --git a/src/core/config.xml b/src/core/config.xml index baca469..07571a7 100644 --- a/src/core/config.xml +++ b/src/core/config.xml @@ -567,7 +567,7 @@ diff --git a/src/network/connection.h b/src/network/connection.h index 3718fe9..f4e168b 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -109,7 +109,7 @@ extern ssize_t net_con_recv(struct net_connection* con, void* buf, size_t len); extern ssize_t net_con_peek(struct net_connection* con, void* buf, size_t len); /** - * Set timeout for connetion. + * Set timeout for connection. * * @param seconds the number of seconds into the future. */ diff --git a/src/network/network.h b/src/network/network.h index 1d63a1d..fb34d12 100644 --- a/src/network/network.h +++ b/src/network/network.h @@ -53,7 +53,7 @@ extern int net_initialize(); extern int net_destroy(); /** - * @return the number of sockets currrently being monitored. + * @return the number of sockets currently being monitored. */ extern int net_monitor_count(); diff --git a/src/util/rbtree.c b/src/util/rbtree.c index ae61f2e..2f2be77 100644 --- a/src/util/rbtree.c +++ b/src/util/rbtree.c @@ -356,7 +356,7 @@ static struct rb_node* rb_tree_traverse(struct rb_tree* tree, int dir) if (p->link[!dir] == n) return rb_it_set(tree, p); - // walk up in hte current direction + // walk up in the current direction while (p->link[dir] == n) { n = p;