ShoutcastConnector.h
- Committer:
- FrankWeissenborn
- Date:
- 2011-01-29
- Revision:
- 5:36d14584e42f
- Parent:
- 3:87023c28aff5
- Child:
- 6:e269a1b3bf4f
File content as of revision 5:36d14584e42f:
#ifndef __SHOUTCASTCONNECTOR_H #define __SHOUTCASTCONNECTOR_H #include "VS1053.h" #include "TCPSocket.h" typedef void (*myCallBack_pfn)(const char*, int, int, int); class ShoutcastConnector { public: ShoutcastConnector(VS1053* mp3,myCallBack_pfn, char *buffer, int buffer_size); int Connect(IpAddr address, int port, char * path); int Disconnect(); private: VS1053* _mp3; myCallBack_pfn _callback; TCPSocket _sock; char* _buffer; int _buffer_size; char * _path; void Writeable(); void Readable(); void onTCPSocketEvent(TCPSocketEvent e); }; #endif