Mercurial > dropbear
comparison netio.h @ 1859:1d86a58fb52d
Leave non-interactive at default QoS class
Lower class levels are less well defined, and non-interactive
SSH can carry various different types of applications.
This change also sets lowdelay class (AF21) earlier in an an outbound
dbclient session
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Jan 2022 14:34:10 +0800 |
parents | f787f60f8e45 |
children |
comparison
equal
deleted
inserted
replaced
1857:6022df862942 | 1859:1d86a58fb52d |
---|---|
4 #include "includes.h" | 4 #include "includes.h" |
5 #include "buffer.h" | 5 #include "buffer.h" |
6 #include "queue.h" | 6 #include "queue.h" |
7 | 7 |
8 enum dropbear_prio { | 8 enum dropbear_prio { |
9 DROPBEAR_PRIO_DEFAULT = 10, | 9 DROPBEAR_PRIO_NORMAL = 0, /* the rest - tcp-fwd, scp, rsync, git, etc */ |
10 DROPBEAR_PRIO_LOWDELAY = 11, | 10 DROPBEAR_PRIO_LOWDELAY, /* pty shell, x11 */ |
11 DROPBEAR_PRIO_BULK = 12, | |
12 }; | 11 }; |
13 | 12 |
14 void set_sock_nodelay(int sock); | 13 void set_sock_nodelay(int sock); |
15 void set_sock_priority(int sock, enum dropbear_prio prio); | 14 void set_sock_priority(int sock, enum dropbear_prio prio); |
16 | 15 |
28 errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */ | 27 errstring is only set on DROPBEAR_FAILURE, returns failure message for the last attempted socket */ |
29 typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); | 28 typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); |
30 | 29 |
31 /* Always returns a progress connection, if it fails it will call the callback at a later point */ | 30 /* Always returns a progress connection, if it fails it will call the callback at a later point */ |
32 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, | 31 struct dropbear_progress_connection * connect_remote (const char* remotehost, const char* remoteport, |
33 connect_callback cb, void *cb_data, const char* bind_address, const char* bind_port); | 32 connect_callback cb, void *cb_data, const char* bind_address, const char* bind_port, |
33 enum dropbear_prio prio); | |
34 | 34 |
35 /* Sets up for select() */ | 35 /* Sets up for select() */ |
36 void set_connect_fds(fd_set *writefd); | 36 void set_connect_fds(fd_set *writefd); |
37 /* Handles ready sockets after select() */ | 37 /* Handles ready sockets after select() */ |
38 void handle_connect_fds(const fd_set *writefd); | 38 void handle_connect_fds(const fd_set *writefd); |