ghttpThink

GameSpy SDK

ghttpThink

Processes all current http requests.

void ghttpThink( );
RoutineRequired HeaderDistribution
ghttpThink<ghttp.h>SDKZIP

Remarks

Any application that uses GHTTP in non-blocking mode (sets the blocking paramater to GHTTPFalse) needs to call ghttpThink to let the library do any necessary processing. This call will process any current requests and call any callbacks if necessary. It will typically be called in the application’s main loop. While it can be called as little as a few times a second, it should be called closer to 10-20 times a second. If downloading larger files, it may be desirable to call it even more often, to ensure that incoming buffers are emptied to make room for more incoming data.

Threads note: Making GHTTP requests concurrently from multiple threads is currently only supported under Win32. When using GHTTP from multiple threads, instead of calling ghttpThink, use ghttpRequestThink for each individual request. This allows that request’s callback to be called from within the same thread in which it was started.

Section Reference: Gamespy HTTP SDK

See Also: ghttpRequestThink