src/solaris/classes/sun/nio/ch/sctp/ResultContainer.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
*** 22,47 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.nio.ch.sctp;
! import javax.tools.annotation.GenerateNativeHeader;
/**
* Wraps the actual message or notification so that it can be
* set and returned from the native receive implementation.
*/
- /* No native methods here, but the constants are needed in the supporting JNI code */
- @GenerateNativeHeader
public class ResultContainer {
/* static final ints so that they can be referenced from native */
! static final int NOTHING = 0;
! static final int MESSAGE = 1;
! static final int SEND_FAILED = 2;
! static final int ASSOCIATION_CHANGED = 3;
! static final int PEER_ADDRESS_CHANGED = 4;
! static final int SHUTDOWN = 5;
private Object value;
private int type;
int type() {
--- 22,45 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.nio.ch.sctp;
! import java.lang.annotation.Native;
/**
* Wraps the actual message or notification so that it can be
* set and returned from the native receive implementation.
*/
public class ResultContainer {
/* static final ints so that they can be referenced from native */
! @Native static final int NOTHING = 0;
! @Native static final int MESSAGE = 1;
! @Native static final int SEND_FAILED = 2;
! @Native static final int ASSOCIATION_CHANGED = 3;
! @Native static final int PEER_ADDRESS_CHANGED = 4;
! @Native static final int SHUTDOWN = 5;
private Object value;
private int type;
int type() {