eq::X11Connection Class Reference

An 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_)
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

An X11 Display connection wrapper.

This class is used to monitor multiple GLXPipe X11 display connections for events using a net::ConnectionSet.

For internal use only.

Definition at line 39 of file X11Connection.h.


Member Function Documentation

virtual Notifier eq::X11Connection::getNotifier (  )  const [inline, virtual]
Returns:
the notifier signaling events on the connection.

Reimplemented from eq::net::Connection.

Definition at line 55 of file X11Connection.h.

References eq::GLXPipe::getXDisplay().

Here is the call graph for this function:

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 64 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 66 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 68 of file X11Connection.h.


The documentation for this class was generated from the following file:
Generated on Sat Feb 6 13:07:44 2010 for Equalizer 0.9.1 by  doxygen 1.6.1