typedef struct __WSABUF { u_longlen; // buffer length char FAR *buf; // pointer to buffer } WSABUF, FAR * LPWSABUF;