class KUnixSocketAddress

a Unix socket address. More...

Definition#include <ksockaddr.h>
InheritsKSocketAddress
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

A Unix socket address

This is a Unix socket address

This class expects QCString instead of QString values, which means the filenames should be encoded in whatever form locale/system deems necessary before passing down to the function

 KUnixSocketAddress ()

Default constructor

 KUnixSocketAddress (sockaddr_un* raw_data, ksocklen_t size)

Constructor from raw data

Parameters:
raw_dataraw data
sizedata length

 KUnixSocketAddress (QCString pathname)

Constructor from pathname

Parameters:
pathpathname

KUnixSocketAddress ()

[virtual]

Destructor

bool  setAddress (sockaddr_un* socket_address, ksocklen_t size)

Sets this to given sockaddr_un

Parameters:
socket_addresssocket address
sizethe socket length

bool  setAddress (QCString path)

Sets this to given pathname

Parameters:
pathpathname

QCString  pathname ()

[const]

Returns the pathname

QString  pretty ()

[const virtual]

Returns pretty representation of this socket

Reimplemented from KSocketAddress

const sockaddr_un*  address ()

[const]

Returns raw socket address

Reimplemented from KSocketAddress

 operator const sockaddr_un* ()

[const]

Returns raw socket address