+ if( FD_ISSET(giConnectionNum, fds) )
+ {
+ char tmpbuf[STATICBUF_SIZE];
+ char *data = tmpbuf;
+ size_t len = _SysRead(giConnectionNum, tmpbuf, sizeof(tmpbuf));
+
+ if( giConnectionType == CONNTYPE_UDP )
+ {
+ assert(len > giAxWin3_int_UDPHeaderLen);
+ len -= giAxWin3_int_UDPHeaderLen;
+ data += giAxWin3_int_UDPHeaderLen;
+ }
+ assert(len >= sizeof(tAxWin_IPCMessage));
+ ret = malloc(len);
+ memcpy(ret, data, len);
+ }