Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple BSD Sockets question



Folks

I am communicating between CPUs using a socket.

On the server side, I bind, then listen, then accept.

On the client, I talk to the server through the socket

This is all working perfectly, but I have one small problem

- When I quit, I need to unblock the last call to accept. (I am using a blocking call).

How do I release the accept so I can terminate my thread and quit ?

I am sure this is really simple, but I am new to sockets, please give me any pointers (or handles...:-)

Cheers

Mark Gilbert.
--
email@hidden
Tel: +44 208 340 5677
fax: +44 870 055 7790
http://www.gallery.co.uk
New Product ! - Zen MetaCorder
Location Sound Field Recorder
http://www.metacorder.info
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.