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.

  • 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
    Modifier and Type
    Method
    Description
    void
    The callback for notifications that the notification bus is not operating.
    void
    up()
    The callback for notifications that the notification bus is operational.
  • 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.