Back: Sockets.UDPSocketImpl-multicasting Up: Sockets package Forward: Sockets.UnixAddress class-C constants   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

6.25 Sockets.UnixAddress

Defined in namespace Sockets
Superclass: Sockets.SocketAddress
Category: Sockets-Protocols

This class represents an address for a machine using the AF_UNIX address family. Since this address family is only used for local sockets, the class is a singleton; the filesystem path to the socket is represented using the port argument to socket functions, as either a String or a File object.

6.25.1 Sockets.UnixAddress class: C constants  (class)
6.25.2 Sockets.UnixAddress class: initialization  (class)
6.25.3 Sockets.UnixAddress class: instance creation  (class)
6.25.4 Sockets.UnixAddress: accessing  (instance)
6.25.5 Sockets.UnixAddress: printing  (instance)
6.25.6 Sockets.UnixAddress: testing  (instance)


6.25.1 Sockets.UnixAddress class: C constants

addressFamily
Not commented.

protocolFamily
Not commented.


6.25.2 Sockets.UnixAddress class: initialization

createLoopbackHost
Answer an object representing the loopback host in the address family for the receiver. This is 127.0.0.1 for IPv4.

createUnknownAddress
Answer an object representing an unkown address in the address family for the receiver

initialize
Set up the default implementation classes for the receiver


6.25.3 Sockets.UnixAddress class: instance creation

fromSockAddr: aByteArray port: portAdaptor
Private - Answer the unique UnixAddress instance, filling in the portAdaptor's value from a ByteArray containing a C sockaddr_in structure.

uniqueInstance
Not commented.


6.25.4 Sockets.UnixAddress: accessing

= aSocketAddress
Answer whether the receiver and aSocketAddress represent the same socket on the same machine.

hash
Answer an hash value for the receiver


6.25.5 Sockets.UnixAddress: printing

printOn: aStream
Print the receiver in dot notation.


6.25.6 Sockets.UnixAddress: testing

isMulticast
Answer whether an address is reserved for multicast connections.



Back: Sockets.UnixAddress-printing Up: Sockets.UnixAddress Forward: Sockets.UnixDatagramSocketImpl   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html