randy@utcsrgv.UUCP (Randall S. Becker) (05/20/84)
I am trying to figure out how to use the IPC facility on 4.2BSD. Does anyone out there have a sample program which actually runs? I have read the man entries and online ipc documentation (which is [I think] usually included in 4.2BSD distribution). My main problem is that `accept' is not blocking my server. The documentation states that normally it should block unless told otherwise. It does not mention (at least I have not noticed) the technique for configuring or reconfiguring a socket for either blocking of non-blocking mode. I gather that this is done via `setsockopt' ; but the documentation is severely poor for that routine. Any help would be appreciated. By the way, I am not overly concerned with net-sockets; just simple local client/server sockets. Thanks in advance, -- Randall S. Becker Usenet: {dalcs,dciem,garfield,musocs,qucis,sask,titan, trigraph,ubc-vision,utzoo,watmath,allegra,cornell, decvax,decwrl,ihnp4,uw-beaver}!utcsrgv!randy CSNET: randy@Toronto ARPA: randy%Toronto@CSNet-Relay
james@umcp-cs (06/01/84)
I'm not looking at the manual right this instant, but if I remember correctly, you must first bind() your socket to an address before you can use it for anything. Do a perror() and check the man entry. --Jim