Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Transport.h
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  *
16  * Transport.h
17  * Interface for the Transport class
18  * Copyright (C) 2012 Simon Newton
19  */
20 
21 #ifndef PLUGINS_E131_E131_TRANSPORT_H_
22 #define PLUGINS_E131_E131_TRANSPORT_H_
23 
24 #include <string>
25 #include "ola/acn/ACNPort.h"
26 #include "ola/network/IPV4Address.h"
27 #include "ola/network/Interface.h"
28 #include "ola/network/Socket.h"
29 #include "plugins/e131/e131/PDU.h"
30 
31 namespace ola {
32 namespace plugin {
33 namespace e131 {
34 
36 
37 /*
38  * The interface that all Outgoing (sending) Transports inherit from. This
39  * allows us to support several different protocol transports.
40  */
42  public:
44  virtual ~OutgoingTransport() {}
45 
46  virtual bool Send(const PDUBlock<PDU> &pdu_block) = 0;
47 };
48 } // namespace e131
49 } // namespace plugin
50 } // namespace ola
51 #endif // PLUGINS_E131_E131_TRANSPORT_H_