Diff: ShoutcastConnector.h
- Revision:
- 5:36d14584e42f
- Parent:
- 3:87023c28aff5
- Child:
- 6:e269a1b3bf4f
--- a/ShoutcastConnector.h Thu Jan 13 13:32:03 2011 +0000 +++ b/ShoutcastConnector.h Sat Jan 29 21:15:17 2011 +0000 @@ -5,20 +5,22 @@ #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); + 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; + VS1053* _mp3; + myCallBack_pfn _callback; + TCPSocket _sock; + char* _buffer; + int _buffer_size; + char * _path; + void Writeable(); void Readable();