#### PyKDE - Python Bindings for KDE

# class KIO.TCPSlaveBase |
Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KIO.TCPSlaveBase
Inherits | KIO.SlaveBase

### methods

- AtEOF ()

  returns (bool)

- CleanSSL ()

  returns nothing

- CloseDescriptor ()

  returns nothing

- ConnectToHost (host, port, sendError)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  host | QString |
  port | uint |
  sendError | bool |

- GetPort (p)

  returns (ushort)
  Argument | Type | Default
  --- | --- | ---
  p | ushort |

- InitializeSSL ()

  returns (bool)

- Read (data, len)

  returns (ssize_t)
  Argument | Type | Default
  --- | --- | ---
  data | void |
  len | ssize_t |

- ReadLine (data, len)

  returns (ssize_t)
  Argument | Type | Default
  --- | --- | ---
  data | char |
  len | ssize_t |

- TCPSlaveBase (defaultPort, protocol, poolSocket, appSocket)

  returns a TCPSlaveBase instance
  Argument | Type | Default
  --- | --- | ---
  defaultPort | ushort |
  protocol | QCString |
  poolSocket | QCString |
  appSocket | QCString |

- TCPSlaveBase (defaultPort, protocol, poolSocket, appSocket, useSSL)

  returns a TCPSlaveBase instance
  Argument | Type | Default
  --- | --- | ---
  defaultPort | ushort |
  protocol | QCString |
  poolSocket | QCString |
  appSocket | QCString |
  useSSL | bool |

- Write (data, len)

  returns (ssize_t)
  Argument | Type | Default
  --- | --- | ---
  data | void |
  len | ssize_t |

- atEnd ()

  returns (bool)

- canUseTLS ()

  returns (bool)

- certificatePrompt ()

  returns nothing

- cleanSSL ()

  returns nothing

- closeDescriptor ()

  returns nothing

- connectResult ()

  returns (int)

- connectToHost (host, port, sendError = 1)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  host | QString |
  port | uint |
  sendError | bool | 1

- doConstructorStuff ()

  returns nothing

- initializeSSL ()

  returns (bool)

- isConnectionValid ()

  returns (bool)

- isSSLTunnelEnabled ()

  returns (bool)

- port (_port)

  returns (ushort)
  Argument | Type | Default
  --- | --- | ---
  _port | ushort |

- read (data, len)

  returns (ssize_t)
  Argument | Type | Default
  --- | --- | ---
  data | void |
  len | ssize_t |

- readLine (data, len)

  returns (ssize_t)
  Argument | Type | Default
  --- | --- | ---
  data | char |
  len | ssize_t |

- setBlockConnection (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setBlockSize (sz)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  sz | int |

- setConnectTimeout (t)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  t | int |

- setEnableSSLTunnel (enable)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setRealHost (realHost)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  realHost | QString |

- setSSLMetaData ()

  returns nothing

- startTLS ()

  returns (int)

- stopTLS ()

  returns nothing

- userAborted ()

  returns (bool)

- usingSSL ()

  returns (bool)
  In versions KDE 3.2.0 and above only

- usingTLS ()

  returns (bool)

- verifyCertificate ()

  returns (int)

- waitForResponse (t)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  t | int |

- write (data, len)

  returns (ssize_t)
  Argument | Type | Default
  --- | --- | ---
  data | void |
  len | ssize_t |