Re: Sockets and g_io_channel
- From: Juan Agüí <jagui die upm es>
- To: "chen.shengqi" <chen shengqi connet com tw>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Sockets and g_io_channel
- Date: 08 Nov 2002 08:26:06 +0100
El vie, 08-11-2002 a las 01:21, chen.shengqi escribió:
you should accept a connect from remote then Create a g_io_channel with the connected socket fd.
connfd = accept(...)
newiochnl = =g_io_channel_new(connfd )
Good idea. Right now i create the socket, attach to a giochannel, and
await for connection in the watch function . But i think your approach
is far better. Thanks a lot . Juan.
--
Juan Agüí Martín
ETSI Telecomunicación
C. Universitaria S/N Dpcho B-205
Madrid 28050 Spain
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]