diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-05 10:49:17 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-05 10:49:17 -0800 |
| commit | d31844817a5b304a894c5b963cd52aeb9e47c627 (patch) | |
| tree | 9517f18170335b0865ccec7afad1da6b20537b18 /src/platform/posix/posix_tcpdial.c | |
| parent | e5d5b625f16c3c3df5a3fdcc114a6694d82ab6e8 (diff) | |
| download | nng-d31844817a5b304a894c5b963cd52aeb9e47c627.tar.gz nng-d31844817a5b304a894c5b963cd52aeb9e47c627.tar.bz2 nng-d31844817a5b304a894c5b963cd52aeb9e47c627.zip | |
posix: move tcpdialer definition out of shared header
Diffstat (limited to 'src/platform/posix/posix_tcpdial.c')
| -rw-r--r-- | src/platform/posix/posix_tcpdial.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/platform/posix/posix_tcpdial.c b/src/platform/posix/posix_tcpdial.c index e827b666..7b2f09a9 100644 --- a/src/platform/posix/posix_tcpdial.c +++ b/src/platform/posix/posix_tcpdial.c @@ -32,6 +32,17 @@ #endif #endif +struct nni_tcp_dialer { + nni_list connq; // pending connections + bool closed; + bool nodelay; + bool keepalive; + struct sockaddr_storage src; + size_t srclen; + nni_mtx mtx; + nni_refcnt ref; +}; + static void tcp_dialer_fini(void *arg); // Dialer stuff. |
