public class TcpSocket extends SocketIO implements FileIO
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| 限定符和类型 | 方法和说明 |
|---|---|
AndroidFileIO |
accept(com.sun.jna.Pointer addr,
com.sun.jna.Pointer addrlen) |
protected int |
bind_ipv4(com.sun.jna.Pointer addr,
int addrlen) |
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() |
int |
getpeername(com.sun.jna.Pointer addr,
com.sun.jna.Pointer addrlen) |
protected int |
getTcpNoDelay() |
int |
listen(int backlog) |
int |
read(Backend backend,
com.sun.jna.Pointer buffer,
int count) |
int |
recvfrom(Backend backend,
com.sun.jna.Pointer buf,
int len,
int flags,
com.sun.jna.Pointer src_addr,
com.sun.jna.Pointer 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) |
int |
shutdown(int how) |
String |
toString() |
int |
write(byte[] data) |
bind_ipv6, bind, connect, fillAddress, fstat, getdents64, getsockname, getsockopt, sendto, setsockoptsetFlags, statfscanRead, dup2, fcntl, ftruncate, getMmapData, getPath, ioctl, llseek, lseek, mmap2, preadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, connect, dup2, fcntl, ftruncate, getPath, getsockname, getsockopt, ioctl, llseek, lseek, mmap2, pread, sendto, setsockoptstatfspublic TcpSocket(Emulator<?> emulator)
public void close()
close 在接口中 FileIOclose 在类中 AbstractFileIOpublic int write(byte[] data)
write 在接口中 FileIOwrite 在类中 AbstractFileIOpublic int recvfrom(Backend backend, com.sun.jna.Pointer buf, int len, int flags, com.sun.jna.Pointer src_addr, com.sun.jna.Pointer addrlen)
public int read(Backend backend, com.sun.jna.Pointer buffer, int count)
read 在接口中 FileIOread 在类中 AbstractFileIOpublic int listen(int backlog)
listen 在接口中 FileIOlisten 在类中 AbstractFileIOpublic AndroidFileIO accept(com.sun.jna.Pointer addr, com.sun.jna.Pointer addrlen)
accept 在接口中 AndroidFileIOaccept 在类中 BaseAndroidFileIOprotected int connect_ipv4(com.sun.jna.Pointer addr,
int addrlen)
connect_ipv4 在类中 SocketIOprotected int connect_ipv6(com.sun.jna.Pointer addr,
int addrlen)
connect_ipv6 在类中 SocketIOpublic int getpeername(com.sun.jna.Pointer addr,
com.sun.jna.Pointer addrlen)
getpeername 在接口中 FileIOgetpeername 在类中 AbstractFileIOprotected InetSocketAddress getLocalSocketAddress()
getLocalSocketAddress 在类中 SocketIOprotected void setKeepAlive(int keepAlive)
throws SocketException
setKeepAlive 在类中 SocketIOSocketExceptionprotected void setSendBufferSize(int size)
throws SocketException
setSendBufferSize 在类中 SocketIOSocketExceptionprotected void setReceiveBufferSize(int size)
throws SocketException
setReceiveBufferSize 在类中 SocketIOSocketExceptionprotected void setReuseAddress(int reuseAddress)
throws SocketException
setReuseAddress 在类中 SocketIOSocketExceptionprotected void setTcpNoDelay(int tcpNoDelay)
throws SocketException
setTcpNoDelay 在类中 SocketIOSocketExceptionprotected int getTcpNoDelay()
throws SocketException
getTcpNoDelay 在类中 SocketIOSocketExceptionpublic int shutdown(int how)
shutdown 在接口中 FileIOshutdown 在类中 AbstractFileIOCopyright © 2021. All rights reserved.