netmulti.h #1

  • //
  • 2018-1/
  • guest/
  • perforce_software/
  • p4/
  • 2018-1/
  • net/
  • netmulti.h
  • View
  • Commits
  • Open Download .zip Download (519 B)
class BitArray;

class NetMulti {
    public:
	NetMulti();
	~NetMulti();

	/* remove all transports from multiple read i/o */
	void Clear();

	/* poll for readable transports */
	void Select( int block, Error *e );

	/* Add a transport for read i/o */
	void AddTransport( NetTransport *, Error *e );

	/* after a Select method, this call tells if a transport is readable */
	int Readable( NetTransport *, Error *e );

    private:
# ifdef USE_SELECT_BITARRAY
	BitArray *fds;
# else
	fd_set	*fds;
# endif
	int	maxfd;
};
# Change User Description Committed
#1 23878 Nick Poole Import 2018.1 code drop