src/solaris/classes/sun/nio/ch/sctp/PeerAddrChange.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 25,51 ****
package sun.nio.ch.sctp;
import java.net.SocketAddress;
import com.sun.nio.sctp.Association;
import com.sun.nio.sctp.PeerAddressChangeNotification;
! import javax.tools.annotation.GenerateNativeHeader;
/**
* An implementation of PeerAddressChangeNotification
*/
- /* No native methods here, but the constants are needed in the supporting JNI code */
- @GenerateNativeHeader
public class PeerAddrChange extends PeerAddressChangeNotification
implements SctpNotification
{
/* static final ints so that they can be referenced from native */
! private final static int SCTP_ADDR_AVAILABLE = 1;
! private final static int SCTP_ADDR_UNREACHABLE = 2;
! private final static int SCTP_ADDR_REMOVED = 3;
! private final static int SCTP_ADDR_ADDED = 4;
! private final static int SCTP_ADDR_MADE_PRIM = 5;
! private final static int SCTP_ADDR_CONFIRMED =6;
private Association association;
/* assocId is used to lookup the association before the notification is
* returned to user code */
--- 25,49 ----
package sun.nio.ch.sctp;
import java.net.SocketAddress;
import com.sun.nio.sctp.Association;
import com.sun.nio.sctp.PeerAddressChangeNotification;
! import java.lang.annotation.Native;
/**
* An implementation of PeerAddressChangeNotification
*/
public class PeerAddrChange extends PeerAddressChangeNotification
implements SctpNotification
{
/* static final ints so that they can be referenced from native */
! @Native private final static int SCTP_ADDR_AVAILABLE = 1;
! @Native private final static int SCTP_ADDR_UNREACHABLE = 2;
! @Native private final static int SCTP_ADDR_REMOVED = 3;
! @Native private final static int SCTP_ADDR_ADDED = 4;
! @Native private final static int SCTP_ADDR_MADE_PRIM = 5;
! @Native private final static int SCTP_ADDR_CONFIRMED =6;
private Association association;
/* assocId is used to lookup the association before the notification is
* returned to user code */