giuliomoro@44: /* giuliomoro@44: * udpClient.h giuliomoro@44: * giuliomoro@44: * Created on: 19 May 2015 giuliomoro@44: * Author: giulio moro giuliomoro@44: */ giuliomoro@44: giuliomoro@44: #ifndef UDPCLIENT_H_ giuliomoro@44: #define UDPCLIENT_H_ giuliomoro@44: giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: #include giuliomoro@44: giuliomoro@44: class UdpClient{ giuliomoro@44: private: giuliomoro@44: int port; giuliomoro@44: int enabled; giuliomoro@44: int outSocket; giuliomoro@44: struct sockaddr_in destinationServer; giuliomoro@44: public: giuliomoro@44: UdpClient(); giuliomoro@44: UdpClient(int aPort, const char* aServerName); giuliomoro@44: ~UdpClient(); giuliomoro@44: void setPort(int aPort); giuliomoro@44: void setServer(const char* aServerName); giuliomoro@44: int send(void* message, int size); giuliomoro@44: }; giuliomoro@44: giuliomoro@44: giuliomoro@44: giuliomoro@44: #endif /* UDPCLIENT_H_ */