version 1.10, 2015/08/06 10:01:52 |
version 1.11, 2015/08/14 13:51:55 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* $OpenXM: OpenXM_contrib2/asir2000/io/ws_fileio.c,v 1.9 2009/02/13 11:25:48 ohara Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/ws_fileio.c,v 1.10 2015/08/06 10:01:52 fujimoto Exp $ |
*/ |
*/ |
#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) || defined(MPI) |
#if defined(VISUAL) || defined(__MINGW32__) || defined(MPI) |
#include<stdio.h> |
#include<stdio.h> |
#include"wsio.h" |
#include"wsio.h" |
|
|
|
|
if (!s) |
if (!s) |
return 0; |
return 0; |
|
|
#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) |
#if defined(VISUAL) || defined(__MINGW32__) |
size = recv(s->fildes,data,count,0); |
size = recv(s->fildes,data,count,0); |
#elif defined(MPI) |
#elif defined(MPI) |
{ |
{ |
|
|
if (!s || !count) |
if (!s || !count) |
return 0; |
return 0; |
|
|
#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) |
#if defined(VISUAL) || defined(__MINGW32__) |
size = send(s->fildes,data,count,0); |
size = send(s->fildes,data,count,0); |
return size; |
return size; |
#elif defined(MPI) |
#elif defined(MPI) |