[M3devel] Posix/Win32 linger options inverted?

Jay K jay.krell at cornell.edu
Mon Aug 31 12:16:32 CEST 2009


?



> From: jay.krell at cornell.edu
> To: m3devel at elegosoft.com
> Date: Sun, 23 Aug 2009 06:26:34 +0000
> Subject: [M3devel] Posix/Win32 linger options inverted?
> 
> 
> http://modula3.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-comm/tcp/src/POSIX/TCP.m3?rev=1.7;content-type=text%2Fplain
> 
> vs.
> 
> http://modula3.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-comm/tcp/src/WIN32/TCP.m3?rev=1.3;content-type=text%2Fplain
> 
> 
> search for linger:
> 
> PROCEDURE InitFD(fd: CARDINAL) =
> (* We assume that the runtime ignores SIGPIPE signals *)
> VAR
> one: int := 1;
> linger := Usocket.struct_linger{1, 1};
> 
> vs.
> 
> PROCEDURE InitSock(sock: WinSock.SOCKET) =
> (* We assume that the runtime ignores SIGPIPE signals *)
> VAR
> one : BOOL := 1;
> linger := WinSock.struct_linger{0, 0};
> 
> 
> Surely they can't both be correct.
> Which is correct? The Posix one?
> 
> 
> - Jay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090831/bbab3bab/attachment-0002.html>


More information about the M3devel mailing list