tcp/src/POSIX/TCPPosix.i3


 Copyright 1992 Digital Equipment Corporation. 
 Distributed only by permission. 
 Created on Sat Jan 11 15:49:00 PST 1992 by wobber 
 $Id: TCPPosix.i3.html,v 1.4 2010-04-29 17:20:11 wagner Exp $ 

INTERFACE TCPPosix;

IMPORT ConnFD;
IMPORT TCP;

REVEAL
  TCP.T <: Public;

TYPE
  Public = ConnFD.T OBJECT
             fd    : INTEGER;
             closed: BOOLEAN   := FALSE;
           END;
The type Public reveals enough structure of the POSIX implementation of TCP.T to allow a client to perform operations directly upon the POSIX file descriptor in fd. If closed is TRUE, then fd is no longer valid. Any operations on fd must be performed with the object's mutex locked and the caller should assert that closed is FALSE.

END TCPPosix.