From 7dda947198b81622ad0aea773e7ba3a6ec90ba7c Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 15 Dec 2013 11:53:22 +0000 Subject: file sending and receiving, implemented required functions in PICA_client.c, support for bidirectional sending and receiving two files simultaneously, file operations (open, read, write) are handled inside PICA_client instead of caller functions git-svn-id: svn://localhost/project_picapica/trunk@300 fb96df88-216d-11de-830c-f3023f12d8ac --- PICA_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'PICA_common.h') diff --git a/PICA_common.h b/PICA_common.h index bc95be1..dd92b32 100644 --- a/PICA_common.h +++ b/PICA_common.h @@ -4,9 +4,11 @@ #ifdef WIN32 #define CLOSE closesocket #define SHUTDOWN(s) shutdown(s,SD_BOTH) +#define IOCTLSETNONBLOCKINGSOCKET(s, arg) ioctlsocket(s, FIONBIO, (unsigned long*)(arg)) #else #define CLOSE close #define SHUTDOWN(s) shutdown(s,SHUT_RDWR) +#define IOCTLSETNONBLOCKINGSOCKET(s, arg) ioctl(s, FIONBIO, (int*)(arg)) #endif #ifdef WIN32 -- cgit v1.2.1