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
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
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
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,
>
> 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,
>
> 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
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
> 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