Need details about ghttp_get_socket()



I'm working on a project that uses ghttp, and would like to pull it into a nice
event loop centered around select(). I noticed the function ghttp_get_socket()
in the headers, and I'm guessing that'll allow me to do what I want. My question
is, how does all this fit into the ghttp_process() cycle? Do I just do a
ghttp_prepare(), poll on readability, and run ghttp_process() when the socket
has data? Do I have to run ghttp_process() at least once before I start polling?
What?

Ron Steinke



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]