DMTCP
|
#include <fileconnection.h>
Public Types | |
enum | PtyType { PTY_INVALID = Connection::PTY, PTY_DEV_TTY, PTY_CTTY, PTY_PARENT_CTTY, PTY_MASTER, PTY_SLAVE, PTY_BSD_MASTER, PTY_BSD_SLAVE } |
![]() | |
enum | ConnectionType { INVALID = 0x00000, TCP = 0x10000, RAW = 0x11000, PTY = 0x20000, FILE = 0x21000, STDIO = 0x22000, FIFO = 0x24000, EPOLL = 0x30000, EVENTFD = 0x31000, SIGNALFD = 0x32000, INOTIFY = 0x34000, POSIXMQ = 0x40000, TYPEMASK } |
Public Member Functions | |
PtyConnection () | |
PtyConnection (int fd, const char *path, int flags, mode_t mode, int type) | |
string | ptsName () |
string | virtPtsName () |
void | markPreExistingCTTY () |
void | preRefill (bool isRestart) |
virtual void | drain () |
virtual void | refill (bool isRestart) |
virtual void | postRestart () |
virtual void | serializeSubClass (jalib::JBinarySerializer &o) |
virtual bool | isPreExistingCTTY () const |
virtual string | str () |
![]() | |
Connection () | |
virtual | ~Connection () |
void | addFd (int fd) |
void | removeFd (int fd) |
uint32_t | numFds () const |
const vector< int32_t > & | getFds () const |
uint32_t | conType () const |
uint32_t | subType () const |
bool | hasLock () |
bool | isStdio () |
void | checkLocking () |
const ConnectionIdentifier & | id () const |
virtual void | saveOptions () |
virtual void | doLocking () |
virtual void | preCkpt () |
virtual void | resume (bool isRestart) |
virtual void | restoreOptions () |
void | serialize (jalib::JBinarySerializer &o) |
Additional Inherited Members | |
![]() | |
Connection (uint32_t t) | |
![]() | |
ConnectionIdentifier | _id |
uint32_t | _type |
int64_t | _fcntlFlags |
int64_t | _fcntlOwner |
int64_t | _fcntlSignal |
bool | _hasLock |
vector< int32_t > | _fds |
Definition at line 44 of file fileconnection.h.
Enumerator | |
---|---|
PTY_INVALID | |
PTY_DEV_TTY | |
PTY_CTTY | |
PTY_PARENT_CTTY | |
PTY_MASTER | |
PTY_SLAVE | |
PTY_BSD_MASTER | |
PTY_BSD_SLAVE |
Definition at line 47 of file fileconnection.h.
|
inline |
Definition at line 59 of file fileconnection.h.
PtyConnection::PtyConnection | ( | int | fd, |
const char * | path, | ||
int | flags, | ||
mode_t | mode, | ||
int | type | ||
) |
Definition at line 228 of file fileconnection.cpp.
|
virtual |
Implements dmtcp::Connection.
Definition at line 296 of file fileconnection.cpp.
|
inlinevirtual |
Reimplemented from dmtcp::Connection.
Definition at line 72 of file fileconnection.h.
|
inline |
Definition at line 64 of file fileconnection.h.
|
virtual |
Implements dmtcp::Connection.
Definition at line 369 of file fileconnection.cpp.
void PtyConnection::preRefill | ( | bool | isRestart) |
Definition at line 317 of file fileconnection.cpp.
|
inline |
Definition at line 62 of file fileconnection.h.
|
virtual |
Implements dmtcp::Connection.
Definition at line 348 of file fileconnection.cpp.
|
virtual |
Implements dmtcp::Connection.
Definition at line 487 of file fileconnection.cpp.
|
inlinevirtual |
Implements dmtcp::Connection.
Definition at line 73 of file fileconnection.h.
|
inline |
Definition at line 63 of file fileconnection.h.