dk.i1.sctp
Class OneToOneSCTPSocket

java.lang.Object
  extended by dk.i1.sctp.SCTPSocket
      extended by dk.i1.sctp.OneToOneSCTPSocket

public class OneToOneSCTPSocket
extends SCTPSocket

A one-to-one SCTP socket. A one-to-one socket is used when you need a single endpoint connected to a single other endpoint. This is typically used in client-like sockets. A OneToOneSCTPSocket can accept inbound associations but at most one at the time. Contrast with OneToManySCTPSocket.


Constructor Summary
OneToOneSCTPSocket()
          Creates an unbound socket.
OneToOneSCTPSocket(int port)
          Creates a socket bound to the specified port.
 
Method Summary
 OneToOneSCTPSocket accept()
          Accept an incoming association.
 
Methods inherited from class dk.i1.sctp.SCTPSocket
bind, bind, bind, bind, chunkAvailable, close, configureAutoClose, configureBlocking, connect, connect, disconnect, disconnect, finalize, getLocalInetAddresses, getLocalInetAddresses, getLocalInetPort, getPeerInetAddresses, getPeerInetPort, getReceiveBufferSize, getSctpNoDelay, getSendBufferSize, isBlocking, isClosed, listen, receive, receive, receiveNow, send, setInitMsg, setPeerParameters, setReceiveBufferSize, setSctpNoDelay, setSendBufferSize, subscribeEvents, wakeup
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneToOneSCTPSocket

public OneToOneSCTPSocket()
                   throws java.net.SocketException
Creates an unbound socket.

Throws:
java.net.SocketException

OneToOneSCTPSocket

public OneToOneSCTPSocket(int port)
                   throws java.net.SocketException
Creates a socket bound to the specified port.

Parameters:
port - The SCTP port to bind to. The socket is bound to all available interfaces (subject to system policies)
Throws:
java.net.SocketException
Method Detail

accept

public OneToOneSCTPSocket accept()
                          throws java.net.SocketException
Accept an incoming association.

Throws:
java.net.SocketException