public class NetLinkSocket extends SocketIO implements FileIO
AF_INET, AF_INET6, AF_LINK, AF_LOCAL, AF_NETLINK, AF_ROUTE, AF_UNSPEC, IFF_BROADCAST, IFF_LOOPBACK, IFF_MULTICAST, IFF_NOARP, IFF_RUNNING, IFF_UP, IPPROTO_ICMP, IPPROTO_TCP, IPV4_ADDR_LEN, IPV6_ADDR_LEN, MSG_NOSIGNAL, SO_PEERSEC, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET, SOCK_STREAM, SOL_SOCKEToflags, op, stdioSIOCGIFCONF, SIOCGIFFLAGS, SIOCGIFNAME| Constructor and Description |
|---|
NetLinkSocket(Emulator<?> emulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected int |
connect_ipv4(com.sun.jna.Pointer addr,
int addrlen) |
protected int |
connect_ipv6(com.sun.jna.Pointer addr,
int addrlen) |
protected InetSocketAddress |
getLocalSocketAddress() |
protected int |
getTcpNoDelay() |
protected int |
handleType(com.sun.jna.Pointer buffer,
int count,
short netlinkType) |
int |
read(Backend backend,
com.sun.jna.Pointer buffer,
int count) |
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) |
int |
write(byte[] data) |
bind_ipv4, bind_ipv6, bind, connect, fillAddress, fstat, getdents64, getNetworkIFs, getsockname, getsockopt, recvfrom, sendto, setsockoptaccept, setFlags, statfscanRead, dup2, fcntl, ftruncate, getMmapData, getPath, getpeername, ioctl, isStdIO, listen, llseek, lseek, mmap2, pread, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, connect, dup2, fcntl, ftruncate, getPath, getpeername, getsockname, getsockopt, ioctl, isStdIO, listen, llseek, lseek, mmap2, pread, recvfrom, sendto, setsockopt, shutdownaccept, statfspublic NetLinkSocket(Emulator<?> emulator)
public int write(byte[] data)
write in interface FileIOwrite in class AbstractFileIOpublic int read(Backend backend, com.sun.jna.Pointer buffer, int count)
read in interface FileIOread in class AbstractFileIOprotected int handleType(com.sun.jna.Pointer buffer,
int count,
short netlinkType)
protected int getTcpNoDelay()
getTcpNoDelay in class SocketIOprotected void setTcpNoDelay(int tcpNoDelay)
setTcpNoDelay in class SocketIOprotected void setReuseAddress(int reuseAddress)
setReuseAddress in class SocketIOprotected void setKeepAlive(int keepAlive)
setKeepAlive in class SocketIOprotected void setSendBufferSize(int size)
setSendBufferSize in class SocketIOprotected void setReceiveBufferSize(int size)
setReceiveBufferSize in class SocketIOprotected InetSocketAddress getLocalSocketAddress()
getLocalSocketAddress in class SocketIOprotected int connect_ipv6(com.sun.jna.Pointer addr,
int addrlen)
connect_ipv6 in class SocketIOprotected int connect_ipv4(com.sun.jna.Pointer addr,
int addrlen)
connect_ipv4 in class SocketIOpublic void close()
close in interface FileIOclose in class AbstractFileIOCopyright © 2026. All rights reserved.