1 /*
2 * Copyright 2011 The Netty Project
3 *
4 * The Netty Project licenses this file to you under the Apache License,
5 * version 2.0 (the "License"); you may not use this file except in compliance
6 * with the License. You may obtain a copy of the License at:
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations
14 * under the License.
15 */
16 package com.sun.nio.sctp;
17
18 import java.net.SocketAddress;
19
20 public abstract class MessageInfo {
21 static {
22 UnsupportedOperatingSystemException.raise();
23 }
24
25 public static MessageInfo createOutgoing(Association association, SocketAddress address, int streamNumber) {
26 return null;
27 }
28
29 public abstract SocketAddress address();
30 public abstract int streamNumber();
31 public abstract MessageInfo streamNumber(int streamNumber);
32 public abstract int payloadProtocolID();
33 public abstract MessageInfo payloadProtocolID(int ppid);
34 public abstract boolean isComplete();
35 public abstract boolean isUnordered();
36 public abstract MessageInfo unordered(boolean b);
37
38 }