Need details about ghttp_get_socket()

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

 



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


[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux