Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 17 jdk.sctp.jmod - SCTP Module
JDK 17 jdk.sctp.jmod is the JMOD file for JDK 17 SCTP module.
JDK 17 SCTP module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.sctp.jmod.
JDK 17 SCTP module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 SCTP module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.sctp.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/nio/ch/sctp/ResultContainer.java
/*
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
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() {
return type;
}
boolean hasSomething() {
return type() != NOTHING;
}
boolean isNotification() {
return type() != MESSAGE && type() != NOTHING ? true : false;
}
void clear() {
type = NOTHING;
value = null;
}
SctpNotification notification() {
assert type() != MESSAGE && type() != NOTHING;
return (SctpNotification) value;
}
MessageInfoImpl getMessageInfo() {
assert type() == MESSAGE;
if (value instanceof MessageInfoImpl)
return (MessageInfoImpl) value;
return null;
}
SendFailed getSendFailed() {
assert type() == SEND_FAILED;
if (value instanceof SendFailed)
return (SendFailed) value;
return null;
}
AssociationChange getAssociationChanged() {
assert type() == ASSOCIATION_CHANGED;
if (value instanceof AssociationChange)
return (AssociationChange) value;
return null;
}
PeerAddrChange getPeerAddressChanged() {
assert type() == PEER_ADDRESS_CHANGED;
if (value instanceof PeerAddrChange)
return (PeerAddrChange) value;
return null;
}
Shutdown getShutdown() {
assert type() == SHUTDOWN;
if (value instanceof Shutdown)
return (Shutdown) value;
return null;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Type: ");
switch (type) {
case NOTHING: sb.append("NOTHING"); break;
case MESSAGE: sb.append("MESSAGE"); break;
case SEND_FAILED: sb.append("SEND FAILED"); break;
case ASSOCIATION_CHANGED: sb.append("ASSOCIATION CHANGE"); break;
case PEER_ADDRESS_CHANGED: sb.append("PEER ADDRESS CHANGE"); break;
case SHUTDOWN: sb.append("SHUTDOWN"); break;
default : sb.append("Unknown result type");
}
sb.append(", Value: ");
sb.append((value == null) ? "null" : value.toString());
return sb.toString();
}
}
⏎ sun/nio/ch/sctp/ResultContainer.java
Or download all of them as a single archive file:
File name: jdk.sctp-17.0.5-src.zip File size: 52268 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.security.auth.jmod - Security Auth Module
2023-07-18, ≈10🔥, 0💬
Popular Posts:
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may ...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...