Win32 gcj: How to create a shared library and other w32 issues

Danny Smith danny_r_smith_2001@yahoo.co.nz
Sun Jun 1 04:37:00 GMT 2003


Jost Boekemeier wrote:
> Third question: Does anyone know how to ask for the available bytes after
> opening a socket connection? -- gcj says that it is not supported on Win32,
> but somehow I don't believe this. :)
>
Would something like this work?
Danny
#include <winsock2.h>
int inavail_winsock(SOCKET socket)
{
 int err;
 unsigned long num = 0;
 if (ioctlsocket (socket, FIONREAD, &num) == 0)
 return num;
 err = WSAGetLastError();
 /* handle it */
 return 0;
}
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /