eq::X11Connection Class Reference

A X11 Display connection wrapper. More...

#include <X11Connection.h>

Inheritance diagram for eq::X11Connection:

Inheritance graph
[legend]
Collaboration diagram for eq::X11Connection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 X11Connection (GLXPipe *pipe_)
Display * getDisplay () const
virtual Notifier getNotifier () const

Public Attributes

GLXPipe *const pipe

Protected Member Functions

virtual void readNB (void *buffer, const uint64_t bytes)
 Start a read operation on the connection.
virtual int64_t readSync (void *buffer, const uint64_t bytes)
 Finish reading data from the connection.
virtual int64_t write (const void *buffer, const uint64_t bytes)
 Write data to the connection.


Detailed Description

A X11 Display connection wrapper.

Definition at line 35 of file X11Connection.h.


Member Function Documentation

virtual Notifier eq::X11Connection::getNotifier (  )  const [inline, virtual]

Returns:
the notifier signalling events on the connection.

Reimplemented from eq::net::Connection.

Definition at line 53 of file X11Connection.h.

virtual void eq::X11Connection::readNB ( void *  buffer,
const uint64_t  bytes 
) [inline, protected, virtual]

Start a read operation on the connection.

This method is the low-level counterpart to recvNB().

This function returns immediately. The operation's Notifier will signal data availability, upon which readSync() should be used to finish the operation.

Parameters:
buffer the buffer receiving the data.
bytes the number of bytes to read.
See also:
readSync()

Implements eq::net::Connection.

Definition at line 59 of file X11Connection.h.

virtual int64_t eq::X11Connection::readSync ( void *  buffer,
const uint64_t  bytes 
) [inline, protected, virtual]

Finish reading data from the connection.

This method is the low-level counterpart to recvSync(). It may return with a partial read.

Parameters:
buffer the buffer receiving the data.
bytes the number of bytes to read.
Returns:
the number of bytes read, or -1 upon error.

Implements eq::net::Connection.

Definition at line 61 of file X11Connection.h.

virtual int64_t eq::X11Connection::write ( const void *  buffer,
const uint64_t  bytes 
) [inline, protected, virtual]

Write data to the connection.

Parameters:
buffer the buffer containing the message.
bytes the number of bytes to write.
Returns:
the number of bytes written, or -1 upon error.

Implements eq::net::Connection.

Definition at line 63 of file X11Connection.h.


The documentation for this class was generated from the following file:
Generated on Mon Aug 10 18:58:43 2009 for Equalizer 0.9 by  doxygen 1.5.8