• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

  • KNetwork
  • KUnixSocketAddress
Public Member Functions | Protected Member Functions | Friends
KNetwork::KUnixSocketAddress Class Reference

#include <ksocketaddress.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

 KUnixSocketAddress (KSocketAddressData *d)

Friends

class KSocketAddress

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.macieira@kdemail.net>

Definition at line 840 of file ksocketaddress.h.


Constructor & Destructor Documentation

KUnixSocketAddress::KUnixSocketAddress ( )

Default constructor.

Creates an empty object.

Definition at line 903 of file ksocketaddress.cpp.

KUnixSocketAddress::KUnixSocketAddress ( const sockaddr *  sa,
TQ_UINT16  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 907 of file ksocketaddress.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 914 of file ksocketaddress.cpp.

KUnixSocketAddress::KUnixSocketAddress ( const TQString &  pathname)

Constructs an object from the given pathname.

Definition at line 919 of file ksocketaddress.cpp.

KUnixSocketAddress::~KUnixSocketAddress ( ) [virtual]

Destructor.

Definition at line 929 of file ksocketaddress.cpp.


Member Function Documentation

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

Cast operator to sockaddr_un.

Definition at line 888 of file ksocketaddress.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 933 of file ksocketaddress.cpp.

TQString KUnixSocketAddress::pathname ( ) const

Returns the pathname associated with this object.

Will return TQString::null if this object is empty.

Definition at line 939 of file ksocketaddress.cpp.

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

Sets the pathname for the object.

Returns:
a reference to itself

Definition at line 946 of file ksocketaddress.cpp.


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

kdecore

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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |