• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

KNetwork::KUnixSocketAddress

KNetwork::KUnixSocketAddress Class Reference

A Unix (local) socket address. More...

#include <k3socketaddress.h>

Inheritance diagram for KNetwork::KUnixSocketAddress:
KNetwork::KSocketAddress

List of all members.

Public Member Functions

 KUnixSocketAddress (const QString &pathname)
 KUnixSocketAddress (const KUnixSocketAddress &other)
 KUnixSocketAddress (const sockaddr *sa, quint16 len)
 KUnixSocketAddress ()
 operator const sockaddr_un * () const
KUnixSocketAddress & operator= (const KUnixSocketAddress &other)
QString pathname () const
KUnixSocketAddress & setPathname (const QString &path)
virtual ~KUnixSocketAddress ()

Protected Member Functions

 KUnixSocketAddress (KSocketAddressData *d)

Detailed Description

A Unix (local) socket address.

This is a Unix socket address.

Note that this class uses QStrings to represent filenames, which means the proper encoding is used to translate into valid filesystem file names.

Author:
Thiago Macieira <thiago@kde.org>
Deprecated:
Use KSocketFactory or KLocalSocket instead

Definition at line 833 of file k3socketaddress.h.


Constructor & Destructor Documentation

KUnixSocketAddress::KUnixSocketAddress (  ) 

Default constructor.

Creates an empty object.

Definition at line 901 of file k3socketaddress.cpp.

KUnixSocketAddress::KUnixSocketAddress ( const sockaddr *  sa,
quint16  len 
)

Creates this object with the given raw data.

If the sockaddr structure does not contain a Local namespace (Unix) socket, this object will be created empty.

Parameters:
sa the socket address structure
len the structure's length

Definition at line 905 of file k3socketaddress.cpp.

KUnixSocketAddress::KUnixSocketAddress ( const KUnixSocketAddress &  other  ) 

Copy constructor.

Creates a copy of the other object, sharing the data explicitly.

Parameters:
other the other object

Definition at line 912 of file k3socketaddress.cpp.

KUnixSocketAddress::KUnixSocketAddress ( const QString &  pathname  ) 

Constructs an object from the given pathname.

Definition at line 917 of file k3socketaddress.cpp.

KUnixSocketAddress::~KUnixSocketAddress (  )  [virtual]

Destructor.

Definition at line 927 of file k3socketaddress.cpp.

KUnixSocketAddress::KUnixSocketAddress ( KSocketAddressData *  d  )  [protected]

For internal use only.

extra constructor

Definition at line 922 of file k3socketaddress.cpp.


Member Function Documentation

KNetwork::KUnixSocketAddress::operator const sockaddr_un * (  )  const [inline]

Cast operator to sockaddr_un.

Definition at line 881 of file k3socketaddress.h.

KUnixSocketAddress & KUnixSocketAddress::operator= ( const KUnixSocketAddress &  other  ) 

Copy operator.

Copies the contents of the other object into this one. Data is explicitly shared.

Parameters:
other the other

Reimplemented from KNetwork::KSocketAddress.

Definition at line 931 of file k3socketaddress.cpp.

QString KUnixSocketAddress::pathname (  )  const

Returns the pathname associated with this object.

Will return QString() if this object is empty.

Definition at line 937 of file k3socketaddress.cpp.

KUnixSocketAddress & KUnixSocketAddress::setPathname ( const QString &  path  ) 

Sets the pathname for the object.

Returns:
a reference to itself

Definition at line 944 of file k3socketaddress.cpp.


The documentation for this class was generated from the following files:
  • k3socketaddress.h
  • k3socketaddress.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal