Re: What exactly triggers creation of a new client in Wayland server

2011-01-25 Thread Kristian Høgsberg
On Tue, Jan 25, 2011 at 4:02 PM, Zan Dobersek wrote: > Thanks for the reply. > The following is what pushed me into researching the problem - I've created > a test application that sets up a display and tries to create a client that > connects to that display, but the client does not connect. > Ju

Re: What exactly triggers creation of a new client in Wayland server

2011-01-25 Thread Zan Dobersek
Thanks for the reply. The following is what pushed me into researching the problem - I've created a test application that sets up a display and tries to create a client that connects to that display, but the client does not connect. Just as in compositor, I create a wl_display, add a socket to it

Re: What exactly triggers creation of a new client in Wayland server

2011-01-18 Thread Marty Jack
You have it right. When a client does a connect on a socket that another process is listening to (the listen is at line 692), this makes the other end get a "readable" on its end of the socket. You then do an accept, which gives you a new fd for your end of the connection. You then have a bid

What exactly triggers creation of a new client in Wayland server

2011-01-18 Thread Zan Dobersek
Greetings, I'm wondering what exactly sets off the socket_data function in wayland/wayland-server.c at approximate line 640. I can see that we add a file descriptor object of our socket to the main loop in wl_display_add_socket that uses socket_data as the callback function when a client connects