Re: g_io_channel

2005-07-08 Thread John Vetterli
On Fri, 8 Jul 2005, Vivien Malerba wrote: On 7/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: g_io_channel_write_chars(channel, (const gchar *)your_struct, sizeof (your_struct), &written, errors); Beware however that depending on the contents of your structure, you may have some problems if

Re: g_io_channel

2005-07-08 Thread The Saltydog
On 7/8/05, Vivien Malerba <[EMAIL PROTECTED]> wrote: > Beware however that depending on the contents of your structure, you > may have some problems if you exchange data this way between machines > which do not have the same endian-ness (if it's on the same machine, > then no problem!). should no

Re: g_io_channel

2005-07-08 Thread Tor Lillqvist
Vivien Malerba writes: > if it's on the same machine, then no problem!). ...as long as the writer and reader processes are compiled with the same compiler and compiler options, that is. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnom

Re: g_io_channel

2005-07-08 Thread Vivien Malerba
On 7/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I need to send a data structure over an io_channel. In the > reference > > manual, I found that the only available instruction to write data > in a > > channel is: > > > > GIOStatus g_io_channel_write_chars(GIOChannel *channel, >

Re: g_io_channel

2005-07-08 Thread uzytkownik22
> I need to send a data structure over an io_channel. In the reference > manual, I found that the only available instruction to write data in a > channel is: > > GIOStatus g_io_channel_write_chars(GIOChannel *channel, > const gchar *buf, >

RE: g_io_channel

2005-05-01 Thread Freddie Unpenstein
> how i can use g_io_channel to make a simple "echo"-server? libgnet comes with a simple example which does exactly that. Which reminds me... Does anyone know the differences between gnet and gnetwork? Which is the more "GNOME sanctioned" of the two? Fredderic

Re: g_io_channel functions

2005-02-04 Thread Gyözö Both
great, this really seems to be exactly what i want :-) hooray! gyözö > > i'm considering introducing a server/client architecture in one of > > my projects. unfortunately i know nothing about implementing > > sockets, internet communication and such. is there a tutorial or a > > short source code

Re: g_io_channel functions

2005-02-04 Thread Carsten Burstedde
> i'm considering introducing a server/client architecture in one of my > projects. unfortunately i know nothing about implementing sockets, > internet communication and such. is there a tutorial or a short > source code example for the usage of the g_io_channel* functions of > glib? (are those fun