Port I/O in WIN2000 & XP

Lars H. Larsen, ICCC LHL@REDACTED
Thu Dec 12 14:15:41 CET 2002


Hello Erlang world

Any ideas for implementing asynchronous I/O on Port programs in R9 for Windows 2000...

The only thing that seems to work is polling  to handle 0 , I can't get any (windows) overlapped I/O to work and that really kills me !!

I know this works and will loop for ever:

void ErlangRead()
{
	int Cnt;
	BYTE Len = 0;
	BYTE * pb;
	
	while (1) {
		Cnt = read (0, &Len, 1);
		if (!Cnt) {
			return;
		}
		Cnt = read(0, pb, Len);
	}

}





regards
Software developer
Lars H. Larsen
ICCC A/S
Måløvhovedgade 88
2760 Måløv
Denmark
http://www.iccc.dk
mailto:lhl@REDACTED
tel:+45 44860400
GSM +45 51901320





More information about the erlang-questions mailing list