Re: Sockets and g_io_channel



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]