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

tdecore

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

#include <tdesocketaddress.h>

Inheritance diagram for KNetwork::KUnixSocketAddress:
KNetwork::TDESocketAddress

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)
 
- Public Member Functions inherited from KNetwork::TDESocketAddress
 TDESocketAddress ()
 
 TDESocketAddress (const sockaddr *sa, TQ_UINT16 len)
 
 TDESocketAddress (const TDESocketAddress &other)
 
virtual ~TDESocketAddress ()
 
TDESocketAddress & operator= (const TDESocketAddress &other)
 
const sockaddr * address () const
 
sockaddr * address ()
 
TDESocketAddress & setAddress (const sockaddr *sa, TQ_UINT16 len)
 
 operator const sockaddr * () const
 
TQ_UINT16 length () const
 
TDESocketAddress & setLength (TQ_UINT16 len)
 
int family () const
 
virtual TDESocketAddress & setFamily (int family)
 
int ianaFamily () const
 
bool operator== (const TDESocketAddress &other) const
 
virtual TQString nodeName () const
 
virtual TQString serviceName () const
 
virtual TQString toString () const
 
KInetSocketAddress & asInet ()
 
KInetSocketAddress asInet () const
 
KUnixSocketAddress & asUnix ()
 
KUnixSocketAddress asUnix () const
 

Protected Member Functions

 KUnixSocketAddress (TDESocketAddressData *d)
 
- Protected Member Functions inherited from KNetwork::TDESocketAddress
 TDESocketAddress (TDESocketAddressData *d)
 

Friends

class TDESocketAddress
 

Additional Inherited Members

- Static Public Member Functions inherited from KNetwork::TDESocketAddress
static int ianaFamily (int af)
 
static int fromIanaFamily (int iana)
 
- Protected Attributes inherited from KNetwork::TDESocketAddress
TDESocketAddressData * 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.ma.nosp@m.cieir.nosp@m.a@kd.nosp@m.email.nosp@m..net

Definition at line 840 of file tdesocketaddress.h.

Constructor & Destructor Documentation

◆ KUnixSocketAddress() [1/5]

KUnixSocketAddress::KUnixSocketAddress ( )

Default constructor.

Creates an empty object.

Definition at line 942 of file tdesocketaddress.cpp.

◆ KUnixSocketAddress() [2/5]

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 946 of file tdesocketaddress.cpp.

◆ KUnixSocketAddress() [3/5]

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 953 of file tdesocketaddress.cpp.

◆ KUnixSocketAddress() [4/5]

KUnixSocketAddress::KUnixSocketAddress ( const TQString &  pathname)

Constructs an object from the given pathname.

Definition at line 958 of file tdesocketaddress.cpp.

◆ ~KUnixSocketAddress()

KUnixSocketAddress::~KUnixSocketAddress ( )
virtual

Destructor.

Definition at line 968 of file tdesocketaddress.cpp.

◆ KUnixSocketAddress() [5/5]

KUnixSocketAddress::KUnixSocketAddress ( TDESocketAddressData *  d)
protected

Definition at line 963 of file tdesocketaddress.cpp.

Member Function Documentation

◆ operator const sockaddr_un *()

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

Cast operator to sockaddr_un.

Definition at line 888 of file tdesocketaddress.h.

◆ operator=()

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 972 of file tdesocketaddress.cpp.

◆ pathname()

TQString KUnixSocketAddress::pathname ( ) const

Returns the pathname associated with this object.

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

Definition at line 978 of file tdesocketaddress.cpp.

◆ setPathname()

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

Sets the pathname for the object.

Returns
a reference to itself

Definition at line 985 of file tdesocketaddress.cpp.

Friends And Related Function Documentation

◆ TDESocketAddress

friend class TDESocketAddress
friend

Definition at line 842 of file tdesocketaddress.h.


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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.