Re: [Vala] simple echo client server example
- From: Reid Thompson <reid thompson ateb com>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] simple echo client server example
- Date: Thu, 10 Sep 2009 08:57:26 -0400
On Thu, 2009-09-10 at 08:35 +0200, Frederik wrote:
Reid Thompson wrote:
Could someone help me understand what I'm missing in trying to get a
simple socket server running?
Hi,
both of your code examples work very well. What problems did you encounter?
Best regards,
Frederik
Frederik,
Thanks for the response.
Well -- the major problem seems to be resolved -- see 2) below...
1) compile warning
$ valac --pkg gio-2.0 -o server main.vala
/home/rthompso/vala_projects/server/main.vala.c: In function
‘server_demo_handler’:
/home/rthompso/vala_projects/server/main.vala.c:86: warning: passing
argument 1 of ‘g_strchug’ discards qualifiers from pointer target type
2) strange -- yesterday the non-threaded example was outputting the
following repeatedly
$ ./server
(process:10815): GLib-GIO-WARNING **: fail: Error accepting connection:
Invalid argument
(process:10815): GLib-GIO-WARNING **: fail: Error accepting connection:
Invalid argument
....
Today it seems to be working fine. I must have had something
interfering with it yesterday -- perhaps something already bound to port
7500 ( the threaded version perhaps... ) ... no, that wasn't it...
$ ./server
Error binding to address: Address already in use
Not sure what the issue was, but things appear to be working OK now...
reid
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]