org.opennms.jicmp.jna
Class BSDV6NativeSocket

java.lang.Object
  extended by org.opennms.jicmp.jna.NativeDatagramSocket
      extended by org.opennms.jicmp.jna.BSDV6NativeSocket

public class BSDV6NativeSocket
extends NativeDatagramSocket

UnixNativeSocketFactory

Author:
brozow

Field Summary
 
Fields inherited from class org.opennms.jicmp.jna.NativeDatagramSocket
AF_INET, AF_INET6, IPPROTO_ICMP, IPPROTO_ICMPV6, IPPROTO_UDP, PF_INET, PF_INET6, SOCK_DGRAM, SOCK_RAW
 
Constructor Summary
BSDV6NativeSocket(int family, int type, int protocol)
           
 
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 org.opennms.jicmp.jna.NativeDatagramSocket
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSDV6NativeSocket

public BSDV6NativeSocket(int family,
                         int type,
                         int protocol)
                  throws Exception
Throws:
Exception
Method Detail

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.