![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Include dependency graph for ex_network_connect_abort.c:Go to the source code of this file.
Macros | |
| #define | ABORT_MAX_MS 3000 |
| An aborted connect must return in well under the connect budget. | |
| #define | BLACKHOLE_HOST "192.0.2.1" |
| Blackhole target: RFC 5737 documentation range, never has a listener. | |
| #define | BLACKHOLE_PORT "80" |
| Blackhole port (any). | |
| #define | LONG_CONNECT_TIMEOUT_MS 20000 |
| Long connect budget so an un-aborted attempt would clearly out-last an aborted one. | |
Functions | |
| static int | abort_now (void *ctx) |
| Connect-abort callback that always asks to abort, counting its polls. | |
| int | main (void) |
Variables | |
| static int | g_polls = 0 |
| Count of times the abort callback was polled (proves it ran). | |
| #define ABORT_MAX_MS 3000 |
An aborted connect must return in well under the connect budget.
Definition at line 47 of file ex_network_connect_abort.c.
| #define BLACKHOLE_HOST "192.0.2.1" |
Blackhole target: RFC 5737 documentation range, never has a listener.
Definition at line 41 of file ex_network_connect_abort.c.
| #define BLACKHOLE_PORT "80" |
Blackhole port (any).
Definition at line 43 of file ex_network_connect_abort.c.
| #define LONG_CONNECT_TIMEOUT_MS 20000 |
Long connect budget so an un-aborted attempt would clearly out-last an aborted one.
Definition at line 45 of file ex_network_connect_abort.c.
|
static |
Connect-abort callback that always asks to abort, counting its polls.
Definition at line 53 of file ex_network_connect_abort.c.
References g_polls.
Referenced by main().
Here is the caller graph for this function:| int main | ( | void | ) |
Definition at line 59 of file ex_network_connect_abort.c.
References ABORT_MAX_MS, abort_now(), BLACKHOLE_HOST, BLACKHOLE_PORT, g_polls, get_usec(), LOG_ERR, LOG_INFO, LONG_CONNECT_TIMEOUT_MS, n_log, netw, netw_close(), netw_connect_to(), netw_set_connect_abort_cb(), NETWORK_IPV4, set_log_level(), and start_HiTimer().
Here is the call graph for this function:
|
static |
Count of times the abort callback was polled (proves it ran).
Definition at line 50 of file ex_network_connect_abort.c.
Referenced by abort_now(), and main().