QLocalSocket Class Reference
[QtNetwork module]
Inherits QIODevice.
Types
- enum LocalSocketError { ConnectionRefusedError, PeerClosedError, ServerNotFoundError, SocketAccessError, ..., UnknownSocketError }
- enum LocalSocketState { UnconnectedState, ConnectingState, ConnectedState, ClosingState }
Methods
- __init__ (self, QObject parent = None)
- abort (self)
- int bytesAvailable (self)
- int bytesToWrite (self)
- bool canReadLine (self)
- close (self)
- connectToServer (self, QString, QIODevice.OpenMode mode = QIODevice.ReadWrite)
- disconnectFromServer (self)
- LocalSocketError error (self)
- bool flush (self)
- QString fullServerName (self)
- bool isSequential (self)
- bool isValid (self)
- int readBufferSize (self)
- str readData (self, int maxlen)
- QString serverName (self)
- setReadBufferSize (self, int)
- bool setSocketDescriptor (self, sip.voidptr, LocalSocketState state = QLocalSocket.ConnectedState, QIODevice.OpenMode mode = QIODevice.ReadWrite)
- sip.voidptr socketDescriptor (self)
- LocalSocketState state (self)
- bool waitForBytesWritten (self, int msecs = 30000)
- bool waitForConnected (self, int msecs = 30000)
- bool waitForDisconnected (self, int msecs = 30000)
- bool waitForReadyRead (self, int msecs = 30000)
- int writeData (self, str)
Qt Signals
Detailed Description
Type Documentation
QLocalSocket.LocalSocketError
QLocalSocket.LocalSocketState
Method Documentation
QLocalSocket.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QLocalSocket.abort (self)
int QLocalSocket.bytesAvailable (self)
int QLocalSocket.bytesToWrite (self)
bool QLocalSocket.canReadLine (self)
QLocalSocket.close (self)
QLocalSocket.connectToServer (self, QString, QIODevice.OpenMode mode = QIODevice.ReadWrite)
QLocalSocket.disconnectFromServer (self)
bool QLocalSocket.flush (self)
QString QLocalSocket.fullServerName (self)
bool QLocalSocket.isSequential (self)
bool QLocalSocket.isValid (self)
int QLocalSocket.readBufferSize (self)
str QLocalSocket.readData (self, int maxlen)
QString QLocalSocket.serverName (self)
QLocalSocket.setReadBufferSize (self, int)
bool QLocalSocket.setSocketDescriptor (self, sip.voidptr, LocalSocketState state = QLocalSocket.ConnectedState, QIODevice.OpenMode mode = QIODevice.ReadWrite)
sip.voidptr QLocalSocket.socketDescriptor (self)
bool QLocalSocket.waitForBytesWritten (self, int msecs = 30000)
bool QLocalSocket.waitForConnected (self, int msecs = 30000)
bool QLocalSocket.waitForDisconnected (self, int msecs = 30000)
bool QLocalSocket.waitForReadyRead (self, int msecs = 30000)
int QLocalSocket.writeData (self, str)
Qt Signal Documentation
void connected ()
This is the default overload of this signal.
void disconnected ()
This is the default overload of this signal.
void error (QLocalSocket::LocalSocketError)
This is the default overload of this signal.
void stateChanged (QLocalSocket::LocalSocketState)
This is the default overload of this signal.