moss.net
Class MSocketAddr

java.lang.Object
  extended by moss.net.MSocketAddr

public class MSocketAddr
extends java.lang.Object

this class provides an abstraction of a socket address for MOSS. It incorporates both the address and the port (like the POSIX's sockaddr_in), but also the family for handling addresses other than AF_INET


Field Summary
 byte[] address
          address as bytes
static int AF_INET
          internet address
static int AF_UNIX
          unix (MOSS) address
 int family
          address family
 java.lang.String path
          path for a UNIX socket
 int port
          port
 
Constructor Summary
MSocketAddr()
          initialises the address to some sensible defaults
MSocketAddr(java.lang.String path)
          initialises the address with a UNIX socket path
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AF_INET

public static final int AF_INET
internet address

See Also:
Constant Field Values

AF_UNIX

public static final int AF_UNIX
unix (MOSS) address

See Also:
Constant Field Values

family

public int family
address family


address

public byte[] address
address as bytes


port

public int port
port


path

public java.lang.String path
path for a UNIX socket

Constructor Detail

MSocketAddr

public MSocketAddr()
initialises the address to some sensible defaults


MSocketAddr

public MSocketAddr(java.lang.String path)
initialises the address with a UNIX socket path

Parameters:
path - path to the socket (in MOSS-land)