public Win32V6NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in6 addr_in = new sockaddr_in6(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public UnixV6NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in6 addr_in = new sockaddr_in6(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public SunV4NativeSocket(int family, int type, int protocol, int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in addr_in = new sockaddr_in(listenPort); bind(m_sock, addr_in, addr_in.size()); }
@Override public int receive(NativeDatagramPacket p) throws UnknownHostException { sockaddr_in6 in_addr = new sockaddr_in6(); int[] szRef = new int[] { in_addr.size() }; ByteBuffer buf = p.getContent(); int n = recvfrom(getSock(), buf, buf.capacity(), 0, in_addr, szRef); p.setLength(n); p.setAddress(in_addr.getAddress()); p.setPort(in_addr.getPort()); return n; }
@Override public int receive(NativeDatagramPacket p) throws UnknownHostException { sockaddr_in6 in_addr = new sockaddr_in6(); int[] szRef = new int[] { in_addr.size() }; ByteBuffer buf = p.getContent(); int n = recvfrom(getSock(), buf, buf.capacity(), 0, in_addr, szRef); p.setLength(n); p.setAddress(in_addr.getAddress()); p.setPort(in_addr.getPort()); return n; }
@Override public int send(final NativeDatagramPacket p) { final ByteBuffer buf = p.getContent(); final bsd_sockaddr_in6 destAddr = new bsd_sockaddr_in6(p.getAddress(), p.getPort()); final int socket = getSock(); SocketUtils.assertSocketValid(socket); return sendto(socket, buf, buf.remaining(), 0, destAddr, destAddr.size()); }
@Override public int send(final NativeDatagramPacket p) { final bsd_sockaddr_in destAddr = new bsd_sockaddr_in(p.getAddress(), p.getPort()); final ByteBuffer buf = p.getContent(); final int socket = getSock(); SocketUtils.assertSocketValid(socket); return sendto(socket, buf, buf.remaining(), 0, destAddr, destAddr.size()); }
@Override public int send(NativeDatagramPacket p) { sockaddr_in destAddr = new sockaddr_in(p.getAddress(), p.getPort()); ByteBuffer buf = p.getContent(); return sendto(getSock(), buf, buf.remaining(), 0, destAddr, destAddr.size()); }
@Override public int send(NativeDatagramPacket p) { ByteBuffer buf = p.getContent(); sockaddr_in6 destAddr = new sockaddr_in6(p.getAddress(), p.getPort()); return sendto(getSock(), buf, buf.remaining(), 0, destAddr, destAddr.size()); }
@Override public int send(NativeDatagramPacket p) { ByteBuffer buf = p.getContent(); sun_sockaddr_in6 destAddr = new sun_sockaddr_in6(p.getAddress(), p.getPort()); return sendto(getSock(), buf, buf.remaining(), 0, destAddr, destAddr.size()); }
public BSDV6NativeSocket(final int family, final int type, final int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final bsd_sockaddr_in6 in_addr = new bsd_sockaddr_in6(listenPort); bind(m_sock, in_addr, in_addr.size()); }
public UnixV4NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in addr_in = new sockaddr_in(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public Win32V4NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in addr_in = new sockaddr_in(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public SunV6NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sun_sockaddr_in6 in_addr = new sun_sockaddr_in6(listenPort); bind(m_sock, in_addr, in_addr.size()); }
public BSDV4NativeSocket(final int family, final int type, final int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final bsd_sockaddr_in in_addr = new bsd_sockaddr_in(listenPort); bind(m_sock, in_addr, in_addr.size()); }
public Win32V6NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in6 addr_in = new sockaddr_in6(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public UnixV6NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in6 addr_in = new sockaddr_in6(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public BSDV6NativeSocket(final int family, final int type, final int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final bsd_sockaddr_in6 in_addr = new bsd_sockaddr_in6(listenPort); bind(m_sock, in_addr, in_addr.size()); }
public UnixV4NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in addr_in = new sockaddr_in(listenPort); bind(m_sock, addr_in, addr_in.size()); }
public Win32V4NativeSocket(int family, int type, int protocol, final int listenPort) throws Exception { m_sock = socket(family, type, protocol); final sockaddr_in addr_in = new sockaddr_in(listenPort); bind(m_sock, addr_in, addr_in.size()); }