Hi,

I am using libev in one of my client software module. Client connects to the 
server. Server sends some information in response to client request.

One of the problems i am seeing here is client socket Event is not getting 
triggered when the data is available on the client socket.

I know for sure that the server has sent the information requested by the 
client. So, just to prove that in a timer callback i called the getdata() on 
the client socket. The getdata() received data on the client socket.

When we send the kill signal we do receive data or the event call back gets 
triggered.

Has anybody seen similar issue?  can somebody help me here to find a solution.

Following is the skeleton of the client program.

-thanks in advance
-ramana

       

class Client {
    void run();

private:
    AMQPWrapper ipc_;
    ev::io io_;
    ev::sig sio_;
    ev::timer timer_;
};


Client::run{

    ev::default_loop loop;

    timer_.set<Client, &Client::cb_timerEvent>(this);
    timer_.start(1, 0);

    io_.set<Client, &Client::cb_sockEvent>(this);
    io_.start(ipc_.getSocketFD(), ev::READ);

    sio_.set<&Client::cb_signal>();
    sio_.start(SIGINT);

    sendRequest();


    loop.run(0);
}
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to