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 _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
