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

KDECore

  • KNetwork
  • KUnixSocketAddress
Public Member Functions | Protected Member Functions | List of all members
KNetwork::KUnixSocketAddress Class Reference

#include <k3socketaddress.h>

Inheritance diagram for KNetwork::KUnixSocketAddress:
Inheritance graph
[legend]

Public Member Functions

 KUnixSocketAddress ()
 
 KUnixSocketAddress (const sockaddr *sa, quint16 len)
 
 KUnixSocketAddress (const KUnixSocketAddress &other)
 
 KUnixSocketAddress (const QString &pathname)
 
virtual ~KUnixSocketAddress ()
 
 operator const sockaddr_un * () const
 
KUnixSocketAddress & operator= (const KUnixSocketAddress &other)
 
QString pathname () const
 
KUnixSocketAddress & setPathname (const QString &path)
 
- Public Member Functions inherited from KNetwork::KSocketAddress
 KSocketAddress ()
 
 KSocketAddress (const sockaddr *sa, quint16 len)
 
 KSocketAddress (const KSocketAddress &other)
 
virtual ~KSocketAddress ()
 
const sockaddr * address () const
 
sockaddr * address ()
 
KInetSocketAddress & asInet ()
 
KInetSocketAddress asInet () const
 
KUnixSocketAddress & asUnix ()
 
KUnixSocketAddress asUnix () const
 
int family () const
 
int ianaFamily () const
 
quint16 length () const
 
virtual QString nodeName () const
 
 operator const sockaddr * () const
 
KSocketAddress & operator= (const KSocketAddress &other)
 
bool operator== (const KSocketAddress &other) const
 
virtual QString serviceName () const
 
KSocketAddress & setAddress (const sockaddr *sa, quint16 len)
 
virtual KSocketAddress & setFamily (int family)
 
KSocketAddress & setLength (quint16 len)
 
virtual QString toString () const
 

Protected Member Functions

 KUnixSocketAddress (KSocketAddressData *d)
 
- Protected Member Functions inherited from KNetwork::KSocketAddress
 KSocketAddress (KSocketAddressData *d)
 

Additional Inherited Members

- Static Public Member Functions inherited from KNetwork::KSocketAddress
static int fromIanaFamily (int iana)
 
static int ianaFamily (int af)
 
- Protected Attributes inherited from KNetwork::KSocketAddress
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 thiag.nosp@m.o@kd.nosp@m.e.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
sathe socket address structure
lenthe 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
otherthe 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

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
otherthe other

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal