org.opennms.jicmp.jna
Class BSDV6NativeSocket
java.lang.Object
org.opennms.jicmp.jna.NativeDatagramSocket
org.opennms.jicmp.jna.BSDV6NativeSocket
public class BSDV6NativeSocket
- extends NativeDatagramSocket
UnixNativeSocketFactory
- Author:
- brozow
|
Method Summary |
int |
close()
|
int |
close(int socket)
|
int |
receive(NativeDatagramPacket p)
|
int |
recvfrom(int socket,
Buffer buffer,
int buflen,
int flags,
bsd_sockaddr_in6 in_addr,
int[] in_addr_len)
|
int |
send(NativeDatagramPacket p)
|
int |
sendto(int socket,
Buffer buffer,
int buflen,
int flags,
bsd_sockaddr_in6 dest_addr,
int dest_addr_len)
|
int |
socket(int family,
int type,
int protocol)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BSDV6NativeSocket
public BSDV6NativeSocket(int family,
int type,
int protocol)
throws Exception
- Throws:
Exception
socket
public int socket(int family,
int type,
int protocol)
throws com.sun.jna.LastErrorException
- Throws:
com.sun.jna.LastErrorException
sendto
public int sendto(int socket,
Buffer buffer,
int buflen,
int flags,
bsd_sockaddr_in6 dest_addr,
int dest_addr_len)
throws com.sun.jna.LastErrorException
- Throws:
com.sun.jna.LastErrorException
recvfrom
public int recvfrom(int socket,
Buffer buffer,
int buflen,
int flags,
bsd_sockaddr_in6 in_addr,
int[] in_addr_len)
throws com.sun.jna.LastErrorException
- Throws:
com.sun.jna.LastErrorException
close
public int close(int socket)
throws com.sun.jna.LastErrorException
- Throws:
com.sun.jna.LastErrorException
receive
public int receive(NativeDatagramPacket p)
- Specified by:
receive in class NativeDatagramSocket
send
public int send(NativeDatagramPacket p)
- Specified by:
send in class NativeDatagramSocket
close
public int close()
- Specified by:
close in class NativeDatagramSocket
Copyright © 2011. All Rights Reserved.