public class UdpSocket extends SocketIO implements FileIO
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UdpSocket.NetworkIF |
AF_INET, AF_INET6, AF_LINK, AF_LOCAL, AF_NETLINK, AF_ROUTE, AF_UNSPEC, IPPROTO_ICMP, IPPROTO_TCP, IPV4_ADDR_LEN, IPV6_ADDR_LEN, SO_PEERSEC, SOCK_DGRAM, SOCK_RAW, SOCK_STREAM, SOL_SOCKEToflags, opSIOCGIFCONF, SIOCGIFFLAGS| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected int |
connect_ipv4(com.sun.jna.Pointer addr,
int addrlen) |
protected int |
connect_ipv6(com.sun.jna.Pointer addr,
int addrlen) |
FileIO |
dup2() |
protected int |
getIFaceFlags(Emulator<?> emulator,
long argp) |
protected InetSocketAddress |
getLocalSocketAddress() |
protected List<UdpSocket.NetworkIF> |
getNetworkIFs() |
protected int |
getTcpNoDelay() |
int |
ioctl(Emulator<?> emulator,
long request,
long argp) |
int |
read(Backend backend,
com.sun.jna.Pointer buffer,
int count) |
int |
sendto(byte[] data,
int flags,
com.sun.jna.Pointer dest_addr,
int addrlen) |
protected void |
setKeepAlive(int keepAlive) |
protected void |
setReceiveBufferSize(int size) |
protected void |
setReuseAddress(int reuseAddress) |
protected void |
setSendBufferSize(int size) |
protected void |
setTcpNoDelay(int tcpNoDelay) |
String |
toString() |
int |
write(byte[] data) |
bind_ipv4, bind_ipv6, bind, connect, fillAddress, fstat, getdents64, getsockname, getsockopt, recvfrom, setsockoptaccept, setFlags, statfscanRead, fcntl, ftruncate, getMmapData, getPath, getpeername, listen, llseek, lseek, mmap2, pread, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, connect, fcntl, ftruncate, getPath, getpeername, getsockname, getsockopt, listen, llseek, lseek, mmap2, pread, recvfrom, setsockopt, shutdownaccept, statfspublic UdpSocket(Emulator<?> emulator)
public void close()
close 在接口中 FileIOclose 在类中 AbstractFileIOprotected int connect_ipv6(com.sun.jna.Pointer addr,
int addrlen)
connect_ipv6 在类中 SocketIOprotected int connect_ipv4(com.sun.jna.Pointer addr,
int addrlen)
connect_ipv4 在类中 SocketIOprotected InetSocketAddress getLocalSocketAddress()
getLocalSocketAddress 在类中 SocketIOpublic int write(byte[] data)
write 在接口中 FileIOwrite 在类中 AbstractFileIOpublic int read(Backend backend, com.sun.jna.Pointer buffer, int count)
read 在接口中 FileIOread 在类中 AbstractFileIOpublic FileIO dup2()
dup2 在接口中 FileIOdup2 在类中 AbstractFileIOpublic int sendto(byte[] data,
int flags,
com.sun.jna.Pointer dest_addr,
int addrlen)
protected void setKeepAlive(int keepAlive)
setKeepAlive 在类中 SocketIOprotected void setSendBufferSize(int size)
setSendBufferSize 在类中 SocketIOprotected void setReceiveBufferSize(int size)
setReceiveBufferSize 在类中 SocketIOprotected void setReuseAddress(int reuseAddress)
setReuseAddress 在类中 SocketIOprotected void setTcpNoDelay(int tcpNoDelay)
setTcpNoDelay 在类中 SocketIOprotected int getTcpNoDelay()
getTcpNoDelay 在类中 SocketIOpublic int ioctl(Emulator<?> emulator, long request, long argp)
ioctl 在接口中 FileIOioctl 在类中 AbstractFileIOprotected List<UdpSocket.NetworkIF> getNetworkIFs() throws SocketException
SocketExceptionprotected int getIFaceFlags(Emulator<?> emulator, long argp)
Copyright © 2021. All rights reserved.