W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

windows sockets/eventloop ? how ??

From: Roland Bickel <r.bickel@cmg.nl>
Date: Mon, 2 Jul 2001 15:42:41 +0200
Message-ID: <3177CCDB4298D311B3CC0050043AF430946EAF@NL-UTH-MAIL02>
To: "'www-lib@w3.org'" <www-lib@w3.org>

Hello fellow libwww 'ers.. i've got a question (again)

here goes:

I've got some source code which looks roughly like this under Unix:

main()
{
	S = socket(...);

	/* Set socket to nonblocking */

	fcntl(..);
	
	E = HTEvent_new(function, data, 0, -1);

	HTEventregister(S, HTEvent_READ, E);

	/* More stuff */

	
	HTEventList_newLoop();
}

which causes function(data) to be called on the appropriate time..

This works fine for me.. but now i want it to work under Windows as well...
How do I do that ? I tried HTEventList_register(..), but that doesn't seem
to work.. Any help would be greatly appreciated.

Kind regards,
Roland Bickel
Received on Monday, 2 July 2001 09:42:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT