Interface StreamReceiver

All Superinterfaces:
OsidReceiver

public interface StreamReceiver extends OsidReceiver

The StreamReceiver is used to receive incoming connections. The receiver is provided to the service via the InboundStreamSession and invoked by the transport provider when a new association is created.

Like all OsidReceivers, notifications are delivered to StreamReceiver serially and a receiver method is not invoked again until any previous invocation has returned.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked by the transport provider when a new connection request or datagram is received.

    Methods inherited from interface OsidReceiver

    down, up
  • Method Details

    • dispatch

      void dispatch(OutboundStreamSession session)
      Invoked by the transport provider when a new connection request or datagram is received.
      Parameters:
      session - a session to send and receive data
      Compliance:
      mandatory - This method must be implemented.