- Adopted by:
- DInet6SocketAddress, DInetSocketAddress, DUnixSocketAddress
- Declared in:
- DSocketAddress.h
Protocol Description
The DSocketAddressable protocol specifies the methods for a socket address
- Last modified:
- 11-Aug-2008 (DSocketAddress.h)
Method Index
- - close
- Close the socket address
- Returns:
- the object
- - copy
- Copy the object
- Returns:
- the object
- - (int) error
- Return the last error
- Returns:
- the last error
- - (int) family
- Return the family of the socket address
- Returns:
- the family
- - free
- Free the address
- Returns:
- the object
- - (DText *) host
- Return the host name
- Returns:
- a (new) text object with the host name
- - (int) port
- Return the port (network format)
- Returns:
- the port
- - (int) size
- Return the size of the socket address
- Returns:
- the size
- - (void *) sockaddr
- Return the socket address
- Returns:
- the socket address
- - (BOOL) sockaddr :(void *) addr :(int) size
- Set the socket address with an external socket address
- Parameters:
- addr - the socket address
size - the size of the socket address
- Returns:
- success
generated 06-Sep-2008 by ObjcDoc 3.0.0