Improved parsing of chunks, replying to most messages, accepting of connect command
This commit is contained in:
parent
d642d2f111
commit
3a3bd060be
4 changed files with 256 additions and 81 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue