Finally get tired of google search. to be precise I'm tired of google's 403 forbidden problem. this happened when google search page was hit too frequently within certain period of time. usually this wouldn't be at issue, but problem appear when all my family member go online on the same time, my family member are all google fan, so they used google very often and we all shared one public ip, DANG! 403 forbidden now kick in to annoy me, and today i finally feel that enough is enough, i shifted to msn search engine today. surprised! msn search is exactly same as google nowsaday, i forgot when is the last time i use msn search. i feel comfortable immediately, i think i'll stay will msn search for pretty long time.
besides this, i have good news. i finally make sdl_net and enet sit peacefully in my c++ network framework. now my network support tcp, udp and enet network protocol and they are all cross-platform readied! integrating enet is actually quite tricky, because it is quite high level compare to tcp and udp and they is one strange problem. the ENetPacket can't be reused, it must be replaced after the packet sent. if not it'll give you random crash (if you send packet very fast it won't crash at all, what's the logic?)
another thing i would like to take note of is std::map index operator []. you can't use this to find item, e.g.
B* b = ur_map[a];
if (!b) return "not found";
because that will add a new entry to your map! the correct way to find a item is used std::map::find()
No comments:
Post a Comment