From 4735d7b69aaf0109b49a6a152b50099ad8400f96 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 13 Jul 2017 03:01:05 -0700 Subject: 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. --- src/platform/windows/win_impl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/platform/windows/win_impl.h') 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); -- cgit v1.2.3-70-g09d2