|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtux.UNetwork
public class UNetwork
Class for network system calls.
Not implemented:
inet_addr, inet_ntoa: Replaced by inet_ntop and inet_pton. {set/get/end}{host/net/proto/serv}ent - To Do. gethostbyname, gethostbyaddr - replaced by getaddrinfo/getnameinfo. getnetbyname, getnetbyaddr - To Do getprotobyname, getprotobynumber- To Do getservbyname, getservbyport - To Do if_* - To Do getsockname, getpeername - To Do socketpair - To Do shutdown - To Do
Nested Class Summary | |
---|---|
static class |
UNetwork.AddrInfoListHead
Jtux-only -- non-standard. |
static class |
UNetwork.s_addrinfo
Java version of C struct addrinfo. |
static class |
UNetwork.s_in_addr
Java version of C struct in_addr. |
static class |
UNetwork.s_in6_addr
Java version of C struct in6_addr. |
static class |
UNetwork.s_linger
Java version of C struct linger. |
static class |
UNetwork.s_msghdr
Java version of C struct msghd. |
static class |
UNetwork.s_sockaddr
Java version of C struct sockaddr. |
static class |
UNetwork.s_sockaddr_in
Java version of C struct sockaddr_in. |
static class |
UNetwork.s_sockaddr_in6
Java version of C struct sockaddr_in6. |
static class |
UNetwork.s_sockaddr_un
Java version of C struct sockaddr_un. |
static class |
UNetwork.SockOptValue
Following class and its subclasses handle the value argument of setsockopt, which in C is of type "const void *". |
static class |
UNetwork.SockOptValue_boolean
Not necessary to use SockOptValue_boolean -- SockOptValue_int works just as well, as the UNIX system call doesn't know the difference. |
static class |
UNetwork.SockOptValue_int
|
static class |
UNetwork.SockOptValue_s_linger
|
static class |
UNetwork.SockOptValue_s_timeval
|
Constructor Summary | |
---|---|
UNetwork()
|
Method Summary | |
---|---|
static int |
accept(int socket_fd,
UNetwork.s_sockaddr sa,
UUtil.IntHolder sa_len)
Calls accept. |
static void |
bind(int socket_fd,
UNetwork.s_sockaddr sa,
int sa_len)
Calls bind. |
static void |
connect(int socket_fd,
UNetwork.s_sockaddr sa,
int sa_len)
Calls connect. |
static void |
freeaddrinfo(UNetwork.s_addrinfo infop)
Calls freeaddrinfo. |
static java.lang.String |
gai_strerror(int code)
Calls gai_strerror. |
static void |
getaddrinfo(java.lang.String nodename,
java.lang.String servname,
UNetwork.s_addrinfo hint,
UNetwork.AddrInfoListHead infop)
Calls getaddrinfo. |
static long |
gethostid()
Calls gethostid. |
static void |
gethostname(java.lang.StringBuffer name)
Calls gethostname. |
static void |
getnameinfo(UNetwork.s_sockaddr sa,
int sa_len,
java.lang.StringBuffer nodename,
java.lang.StringBuffer servname,
int flags)
Calls getnameinfo. |
static void |
getsockopt(int socket_fd,
int level,
int option,
UNetwork.SockOptValue value,
UUtil.IntHolder value_len)
Calls getsockopt. |
static int |
htonl(int hostnum)
Calls htonl. |
static short |
htons(short hostnum)
Calls htons. |
static java.lang.String |
inet_ntop(int domain,
byte[] src)
Calls inet_ntop. |
static java.lang.String |
inet_ntop(int domain,
int src)
Calls inet_ntop. |
static void |
inet_pton(int domain,
java.lang.String src,
byte[] dst)
Calls inet_pton. |
static void |
inet_pton(int domain,
java.lang.String src,
UUtil.IntHolder dst)
Calls inet_pton. |
static void |
listen(int socket_fd,
int backlog)
Calls listen. |
static int |
ntohl(int netnum)
Calls ntohl. |
static short |
ntohs(short netnum)
Calls ntohs. |
static int |
recv(int socket_fd,
byte[] buffer,
int length,
int flags)
Calls recv. |
static int |
recvfrom(int socket_fd,
byte[] buffer,
int length,
int flags,
UNetwork.s_sockaddr sa,
UUtil.IntHolder sa_len)
Calls recvfrom. |
static int |
recvmsg(int socket_fd,
UNetwork.s_msghdr message,
int flags)
Calls recvmsg. |
static int |
send(int socket_fd,
byte[] data,
int length,
int flags)
Calls send. |
static int |
sendmsg(int socket_fd,
UNetwork.s_msghdr message,
int flags)
Calls sendmsg. |
static int |
sendto(int socket_fd,
byte[] message,
int length,
int flags,
UNetwork.s_sockaddr sa,
int sa_len)
Calls sendto. |
static void |
setsockopt(int socket_fd,
int level,
int option,
UNetwork.SockOptValue value,
int value_len)
Calls setsockopt. |
static int |
sockatmark(int socket_fd)
Calls sockatmark. |
static int |
socket(int domain,
int type,
int protocol)
Calls socket. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UNetwork()
Method Detail |
---|
public static int accept(int socket_fd, UNetwork.s_sockaddr sa, UUtil.IntHolder sa_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void bind(int socket_fd, UNetwork.s_sockaddr sa, int sa_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void connect(int socket_fd, UNetwork.s_sockaddr sa, int sa_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void freeaddrinfo(UNetwork.s_addrinfo infop)
Click here for Posix/SUS C API.
public static java.lang.String gai_strerror(int code)
Click here for Posix/SUS C API.
public static void getaddrinfo(java.lang.String nodename, java.lang.String servname, UNetwork.s_addrinfo hint, UNetwork.AddrInfoListHead infop) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static long gethostid()
Click here for Posix/SUS C API.
public static void gethostname(java.lang.StringBuffer name) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void getnameinfo(UNetwork.s_sockaddr sa, int sa_len, java.lang.StringBuffer nodename, java.lang.StringBuffer servname, int flags) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void getsockopt(int socket_fd, int level, int option, UNetwork.SockOptValue value, UUtil.IntHolder value_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int htonl(int hostnum)
Click here for Posix/SUS C API.
public static short htons(short hostnum)
Click here for Posix/SUS C API.
public static java.lang.String inet_ntop(int domain, int src) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static java.lang.String inet_ntop(int domain, byte[] src) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void inet_pton(int domain, java.lang.String src, UUtil.IntHolder dst) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void inet_pton(int domain, java.lang.String src, byte[] dst) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void listen(int socket_fd, int backlog) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int ntohl(int netnum)
Click here for Posix/SUS C API.
public static short ntohs(short netnum)
Click here for Posix/SUS C API.
public static int recv(int socket_fd, byte[] buffer, int length, int flags) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int recvfrom(int socket_fd, byte[] buffer, int length, int flags, UNetwork.s_sockaddr sa, UUtil.IntHolder sa_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int recvmsg(int socket_fd, UNetwork.s_msghdr message, int flags) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int send(int socket_fd, byte[] data, int length, int flags) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int sendmsg(int socket_fd, UNetwork.s_msghdr message, int flags) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int sendto(int socket_fd, byte[] message, int length, int flags, UNetwork.s_sockaddr sa, int sa_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static void setsockopt(int socket_fd, int level, int option, UNetwork.SockOptValue value, int value_len) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int sockatmark(int socket_fd) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
public static int socket(int domain, int type, int protocol) throws UErrorException
Click here for Posix/SUS C API.
UErrorException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |