Re: Problems with GSocketService

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

 



Ali Polatel yazmış:
> I'm trying to implement a server using GSocketService but I faced some
> problems. The code is here¹.
> 
> The binding and listening for connections seem to work fine.
> The problem is when a client connects, the g_input_stream_read_finish()
> function in event_got_data returns error:
> Read failed: Socket is already closed
> 
> I'll be happy if someone can take a look.
> 
> ¹: http://paste.pocoo.org/raw/160099/

Answering myself, I had to call g_object_ref() on the GSocketConnection so
that it doesn't go dead :-]

-- 
Regards,
Ali Polatel

Attachment: pgpQUGunuAvbC.pgp
Description: PGP signature

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux