Class DUnixSocketAddress

Inherits from:
Object
Conforms to:
DSocketAddressable
Declared in:
DSocketAddress.h

Class Hierarchy

    Object
      |
      +---DUnixSocketAddress

Class Description

The DUnixSocketAddress class implements a number of methods for using unix (file) socket addresses.

Example:
#include <stdio.h>
#include "ofc/DSocketAddress.h"

int main(int argc, char *argv[])
{
#ifdef DSA_AF_UNIX
  DUnixSocketAddress *addr2 = [DUnixSocketAddress alloc];

  [addr2 init :"udp1"];                // Init with a filename

  printf("Family of address2: %d\n", [addr2 family]); // Print the family of the unix address

  [addr2 free];
#else
  printf("UnixSocketAddress not present.\n");
#endif


  return 0;
}
Last modified:
11-Aug-2008 (DSocketAddress.h)

Instance Variables

private struct sockaddr _address
the address
private struct sockaddr_un *_unix
the unix cast to address
private int _size
the size of sockaddr
private int _error
always 0

Method Index


generated 06-Sep-2008 by ObjcDoc 3.0.0