Siena C++ API Documentation
Author: Antonio Carzaniga

Siena C++ API documentation (v. 0.4.3)

- Main Page
- Classes
- Files
- Examples

- Class List
- Class Hierarchy
- Class Members

# Sender Class Reference

`#include <Comm.h>`

Inheritance diagram for Sender:

List of all members.

## Public Member Functions
virtual void | send (const char *, size_t)=0 throw (CommException)
virtual void | shutdown ()
## Static Public Member Functions
static Sender * | create_sender (const string &)

## Detailed Description

abstract sender mechanism

a `Sender` represents a generic level-2 output communication mechanism. In practice, a `Sender` allows one to send packets. This is a virtual class, specializations of this class will implement specific communication mechanisms.

## Member Function Documentation

static Sender* Sender::create_sender | ( | const string & |  | ) | `[static]`

sender factory

constructs a Sender based on the URI of the receiver.

virtual void Sender::send | ( | const char * | ,
|  | size_t |  |
| ) |  |  | throw (CommException)`[pure virtual]`

sends a message

Exceptions:

  | CommException |

Implemented in TCPSender, and UDPSender.

virtual void Sender::shutdown | ( |  | ) | `[virtual]`

closes this sender

Reimplemented in UDPSender.

The documentation for this class was generated from the following file:

- Comm.h

Copyright © 2001 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Antonio Carzaniga