PacketSenderFactory (Siena 2.0.4 API Documentation)
Date: 2015-05-17

siena.comm

## Interface PacketSenderFactory

- All Known Implementing Classes:
    GenericSenderFactory

      public interface PacketSenderFactory

  creates PacketSenders based on the external address of their corresponding receivers. Creates PacketSender objects based on the external representation (handler) of their intended receivers. In other words, given the `address of a receiver`, it returns a PacketSender object that can be used to send packets to that receiver.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `PacketSender` | `createPacketSender(java.lang.String handler)` creates a PacketSender object based on the external address of its intended receiver.

- - ### Method Detail

    - #### createPacketSender

          PacketSender createPacketSender(java.lang.String handler)
                                          throws InvalidSenderException

      creates a PacketSender object based on the external address of its intended receiver. Creates a `PacketSender` object based on the external string representation (handler) of its intended receivers. Given the `address of a receiver`, returns a PacketSender object that can be used to send packets to that receiver.

      Implementations may be used through a `GenericSenderFactory` (see `GenericSenderFactory.registerFactory(String,PacketSenderFactory)`

      Parameters:
        `handler` - receiver's address
      Throws:
        `InvalidSenderException`

Copyright © 2000-2005 University of Colorado.
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga