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, ∼7976🔥, 0💬
Popular Posts:
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...