HPCToolkit
TraceviewerServer::DataSocketStream Class Reference

#include <DataSocketStream.hpp>

Public Member Functions

 DataSocketStream (int, bool)
 
void acceptSocket ()
 
 DataSocketStream ()
 
int getPort ()
 
virtual ~DataSocketStream ()
 
virtual void writeInt (int)
 
virtual void writeLong (Long)
 
virtual void writeDouble (double)
 
virtual void writeRawData (char *, int)
 
virtual void writeString (string)
 
virtual void writeShort (short)
 
virtual void flush ()
 
int readInt ()
 
Long readLong ()
 
string readString ()
 
double readDouble ()
 
short readShort ()
 
char readByte ()
 
SocketFD getDescriptor ()
 

Private Member Functions

void checkForErrors (int)
 

Private Attributes

int port
 
SocketFD socketDesc
 
SocketFD unopenedSocketFD
 
FILE * file
 

Detailed Description

Definition at line 79 of file DataSocketStream.hpp.

Constructor & Destructor Documentation

◆ DataSocketStream() [1/2]

TraceviewerServer::DataSocketStream::DataSocketStream ( int  _Port,
bool  Accept = true 
)

Definition at line 88 of file DataSocketStream.cpp.

◆ DataSocketStream() [2/2]

TraceviewerServer::DataSocketStream::DataSocketStream ( )

Definition at line 83 of file DataSocketStream.cpp.

◆ ~DataSocketStream()

TraceviewerServer::DataSocketStream::~DataSocketStream ( )
virtual

Definition at line 154 of file DataSocketStream.cpp.

Member Function Documentation

◆ acceptSocket()

void TraceviewerServer::DataSocketStream::acceptSocket ( )

Definition at line 122 of file DataSocketStream.cpp.

Here is the caller graph for this function:

◆ checkForErrors()

void TraceviewerServer::DataSocketStream::checkForErrors ( int  e)
private

Definition at line 268 of file DataSocketStream.cpp.

◆ flush()

void TraceviewerServer::DataSocketStream::flush ( )
virtual

Definition at line 195 of file DataSocketStream.cpp.

Here is the caller graph for this function:

◆ getDescriptor()

SocketFD TraceviewerServer::DataSocketStream::getDescriptor ( )

Definition at line 279 of file DataSocketStream.cpp.

◆ getPort()

int TraceviewerServer::DataSocketStream::getPort ( )

Definition at line 133 of file DataSocketStream.cpp.

Here is the caller graph for this function:

◆ readByte()

char TraceviewerServer::DataSocketStream::readByte ( )

Definition at line 230 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDouble()

double TraceviewerServer::DataSocketStream::readDouble ( )

Definition at line 257 of file DataSocketStream.cpp.

Here is the call graph for this function:

◆ readInt()

int TraceviewerServer::DataSocketStream::readInt ( )

Definition at line 202 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readLong()

Long TraceviewerServer::DataSocketStream::readLong ( )

Definition at line 212 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readShort()

short TraceviewerServer::DataSocketStream::readShort ( )

Definition at line 222 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readString()

string TraceviewerServer::DataSocketStream::readString ( )

Definition at line 239 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeDouble()

void TraceviewerServer::DataSocketStream::writeDouble ( double  val)
virtual

Definition at line 262 of file DataSocketStream.cpp.

Here is the call graph for this function:

◆ writeInt()

void TraceviewerServer::DataSocketStream::writeInt ( int  toWrite)
virtual

Definition at line 162 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeLong()

void TraceviewerServer::DataSocketStream::writeLong ( Long  toWrite)
virtual

Definition at line 168 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeRawData()

void TraceviewerServer::DataSocketStream::writeRawData ( char *  Data,
int  Length 
)
virtual

Definition at line 175 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeShort()

void TraceviewerServer::DataSocketStream::writeShort ( short  toWrite)
virtual

Definition at line 188 of file DataSocketStream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeString()

void TraceviewerServer::DataSocketStream::writeString ( string  toWrite)
virtual

Definition at line 182 of file DataSocketStream.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ file

FILE* TraceviewerServer::DataSocketStream::file
private

Definition at line 112 of file DataSocketStream.hpp.

◆ port

int TraceviewerServer::DataSocketStream::port
private

Definition at line 108 of file DataSocketStream.hpp.

◆ socketDesc

SocketFD TraceviewerServer::DataSocketStream::socketDesc
private

Definition at line 109 of file DataSocketStream.hpp.

◆ unopenedSocketFD

SocketFD TraceviewerServer::DataSocketStream::unopenedSocketFD
private

Definition at line 110 of file DataSocketStream.hpp.


The documentation for this class was generated from the following files: