00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef LIBOSC_INETUDPREPLIER_H
00027 #define LIBOSC_INETUDPREPLIER_H
00028
00029 #include "Transmit.h"
00030 #include "NullTransmit.h"
00031 #include "InetOSC.h"
00032
00033 #include <sstream>
00034 #include <iosfwd>
00035
00036 class InetUDPMaster;
00037
00046 class InetUDPReplier : public Transmit, InetOSC {
00047 public:
00056 InetUDPReplier(InetUDPMaster *master);
00057
00060 InetUDPReplier(InetUDPReplier &);
00061
00063 virtual ~InetUDPReplier ();
00064
00071 bool transmit(const std::string& data);
00072
00083 bool setDestination (const std::string& host,
00084 const short port);
00085
00089 bool setReturnPort(short);
00090
00095 const std::string getStatusString (void);
00096
00097 std::string getName();
00098
00099 virtual Transmit * clone();
00100
00101 protected:
00102
00103
00104 private:
00105
00107 struct sockaddr *_remoteSendAddr;
00108
00110 unsigned int _addrlen;
00111
00113 InetUDPMaster *_master;
00114
00115 };
00116
00117 #endif // #ifndef LIBOSC_INETUDPREPLIER_H