|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.net.MSocketAddr
public class MSocketAddr
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 |
|---|
public static final int AF_INET
public static final int AF_UNIX
public int family
public byte[] address
public int port
public java.lang.String path
| Constructor Detail |
|---|
public MSocketAddr()
public MSocketAddr(java.lang.String path)
path - path to the socket (in MOSS-land)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||