Skip to content

LocalServer

Qt Base Class: QLocalServer

Signature: QLocalServer(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QLocalServer
PySide6.QtNetwork
QLocalServer(self, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473574004640["network.LocalServer"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473573762592["QtNetwork.QLocalServer"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473574004640
  140713234304496 --> 1473299815024
  1473573762592 --> 1473574004640
  1473288842240 --> 1473573762592
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QLocalServer

Local socket based server.

Source code in prettyqt\network\localserver.py
class LocalServer(core.ObjectMixin, network.QLocalServer):
    """Local socket based server."""

    def get_server_error(self) -> network.abstractsocket.SocketErrorStr:
        return network.abstractsocket.SOCKET_ERROR.inverse[self.serverError()]

    def set_socket_options(self, *name: SocketOptionStr):
        flags = SOCKET_OPTION.merge_flags(name)
        self.setSocketOptions(flags)

    def get_socket_options(self) -> list[SocketOptionStr]:
        return SOCKET_OPTION.get_list(self.socketOptions())

⌗ Property table

Qt Property Type Doc
objectName QString
socketOptions QFlags