ShoutcastConnector.h
- Committer:
- FrankWeissenborn
- Date:
- 2011-01-13
- Revision:
- 3:87023c28aff5
- Parent:
- 1:25ceaa587f6b
- Child:
- 5:36d14584e42f
File content as of revision 3:87023c28aff5:
#ifndef __SHOUTCASTCONNECTOR_H #define __SHOUTCASTCONNECTOR_H #include "VS1053.h" #include "TCPSocket.h" const unsigned int BUFFER_Z = 1536; typedef void (*myCallBack_pfn)(const char*, int, int, int); class ShoutcastConnector { public: ShoutcastConnector(VS1053* mp3,myCallBack_pfn); int Connect(IpAddr address, int port); int Disconnect(); private: VS1053* _mp3; myCallBack_pfn _callback; TCPSocket sock; void Writeable(); void Readable(); void onTCPSocketEvent(TCPSocketEvent e); }; #endif