Improved parsing of chunks, replying to most messages, accepting of connect command

This commit is contained in:
Thulinma 2010-07-28 20:44:56 +02:00
parent d642d2f111
commit 3a3bd060be
4 changed files with 256 additions and 81 deletions

View file

@ -16,8 +16,8 @@ class AMFType {
//scans the vector for the indice, returns the next AMFType from it or null
AMFType * getAMF(std::vector<AMFType> * vect, std::string indice){
std::vector<AMFType>::iterator it;
for (it=vect.begin(); it < vect.end(); it++){
if ((*it)->StrValue() == indice){it++; return *it;}
for (it=vect->begin(); it < vect->end(); it++){
if ((*it).StrValue() == indice){it++; return &(*it);}
}
return 0;
}//getAMF