diff options
author | Guillaume Friloux <guillaume.friloux@gmail.com> | 2015-01-30 14:16:59 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-02-11 17:03:38 +0100 |
commit | 211d54dc8e11a00bb6d9652d1051cca5287a0e75 (patch) | |
tree | 7681fb5b838f65850fff94110d77ae223de7b4ef /src | |
parent | 388f8fbcaad7ead8b919ee256dfd195b404eef27 (diff) |
ecore_con: make disconnects work on Windows.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_con/ecore_con.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 48c84166af..c5c0ec470c 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c | |||
@@ -572,6 +572,9 @@ ecore_con_server_del(Ecore_Con_Server *obj) | |||
572 | if (!svr || svr->delete_me) | 572 | if (!svr || svr->delete_me) |
573 | return NULL; | 573 | return NULL; |
574 | 574 | ||
575 | #ifdef _WIN32 | ||
576 | WSASendDisconnect(svr->fd, NULL); | ||
577 | #endif | ||
575 | _ecore_con_server_kill(obj); | 578 | _ecore_con_server_kill(obj); |
576 | return svr->data; | 579 | return svr->data; |
577 | } | 580 | } |
@@ -885,6 +888,10 @@ ecore_con_client_del(Ecore_Con_Client *obj) | |||
885 | Ecore_Con_Client_Data *cl = eo_data_scope_get(obj, ECORE_CON_CLIENT_CLASS); | 888 | Ecore_Con_Client_Data *cl = eo_data_scope_get(obj, ECORE_CON_CLIENT_CLASS); |
886 | if (!cl) return NULL; | 889 | if (!cl) return NULL; |
887 | 890 | ||
891 | #ifdef _WIN32 | ||
892 | WSASendDisconnect(cl->fd, NULL); | ||
893 | #endif | ||
894 | |||
888 | _ecore_con_client_kill(obj); | 895 | _ecore_con_client_kill(obj); |
889 | return cl->data; | 896 | return cl->data; |
890 | } | 897 | } |