aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows/win_impl.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-13 03:01:05 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-13 03:01:05 -0700
commit4735d7b69aaf0109b49a6a152b50099ad8400f96 (patch)
tree226a34bca67f908e0e70a1ecc858015b4538df06 /src/platform/windows/win_impl.h
parent85593e678c35c13ed2d37f7f22aa41b0b8d70825 (diff)
downloadnng-4735d7b69aaf0109b49a6a152b50099ad8400f96.tar.gz
nng-4735d7b69aaf0109b49a6a152b50099ad8400f96.tar.bz2
nng-4735d7b69aaf0109b49a6a152b50099ad8400f96.zip
Windows implmentation of TCP is "working now".
This is only lightly tested, and I expect that there remain some race conditions. Endpoint logic in particular needs work.
Diffstat (limited to 'src/platform/windows/win_impl.h')
-rw-r--r--src/platform/windows/win_impl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h
index 9049a81d..a77fcf0b 100644
--- a/src/platform/windows/win_impl.h
+++ b/src/platform/windows/win_impl.h
@@ -57,11 +57,10 @@ typedef struct nni_win_event_ops nni_win_event_ops;
struct nni_win_event_ops {
int (*wev_start)(nni_win_event *, nni_aio *);
void (*wev_finish)(nni_win_event *, nni_aio *);
- void (*wev_cancel)(nni_win_event *, nni_aio *);
+ void (*wev_cancel)(nni_win_event *);
};
struct nni_win_event {
OVERLAPPED olpd;
- HANDLE h;
void * ptr;
nni_aio * aio;
nni_mtx mtx;
@@ -78,10 +77,8 @@ enum nni_win_event_flags {
};
extern int nni_win_error(int);
-extern int nni_winsock_error(int);
-extern int nni_win_event_init(
- nni_win_event *, nni_win_event_ops *, void *, HANDLE);
+extern int nni_win_event_init(nni_win_event *, nni_win_event_ops *, void *);
extern void nni_win_event_fini(nni_win_event *);
extern void nni_win_event_submit(nni_win_event *, nni_aio *);
extern void nni_win_event_resubmit(nni_win_event *, nni_aio *);
@@ -96,6 +93,9 @@ extern void nni_win_iocp_sysfini(void);
extern int nni_win_ipc_sysinit(void);
extern void nni_win_ipc_sysfini(void);
+extern int nni_win_tcp_sysinit(void);
+extern void nni_win_tcp_sysfini(void);
+
extern int nni_win_resolv_sysinit(void);
extern void nni_win_resolv_sysfini(void);