Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
- Subject: Re: Using a GCD Client ( was Re: Trouble getting SSD Project working & Questions )
- From: email@hidden
- Date: Sun, 31 Jul 2011 20:09:47 -0500
So, it would appear that I have a working client / launchd based
server. I've updated the sample code:
http://ericgorr.net/pq/AF_UNIX_GCD_Client.zip
Furthermore, I've create a public github project with this sample code
at:
https://github.com/MrLinear/AF_UNIX_Client_Server
in case anyone would like to help clean things up a bit or contribute
improvements. I know that there are many that can be made and my intent
is to continue to make them.
The server should be capable of receiving multiple messages during the
same read and the client should be capable of receiving multiple replies
during the same read.
One aspect of this that is still unclear to me is how to properly
handle setting up the read handler in the client should I be required to
release the initial one. I know I will be sending and receiving multiple
messages, so I know that another read handler will be needed. What is
happening in the client code at the moment is that should I release the
previous one, I immediately setup another one.
One interesting this I did learn is that while I was developing the
server code, I was using CFShow to print out some debugging output. This
did not go well. The messages would appear in the console, but they
might be split oddly into separate lines or might just come out garbled.
I ended up switching to the Apple System Log facility ( man asl ) and it
handled logging the messages much better.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden