* Alpha/OSF1 pthreads sample code anywhere?
@ 1995-12-08 5:00 John Cavazos
1995-12-09 5:00 ` Michael W. Walker
0 siblings, 1 reply; 3+ messages in thread
From: John Cavazos @ 1995-12-08 5:00 UTC (permalink / raw)
Hello,
I'm going to start a project that requires me using the Alpha OSF1 version of
pthreads. I'm looking for any sample code that does simple sorts of things
with pthreads, i.e. create, preempt, stop, etc. The test programs in the
distribution of pthreads is the perfect thing, but I can't get it to compile
on my Alpha box. Any pointers to any sample code would be greatly
appreciated.
regards,
john
--
cavazos@cs.umass.edu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Alpha/OSF1 pthreads sample code anywhere?
1995-12-08 5:00 Alpha/OSF1 pthreads sample code anywhere? John Cavazos
@ 1995-12-09 5:00 ` Michael W. Walker
1995-12-11 5:00 ` Need help with AF_INET, SOCK_STREAM sockets Chris Davis
0 siblings, 1 reply; 3+ messages in thread
From: Michael W. Walker @ 1995-12-09 5:00 UTC (permalink / raw)
In article <4a9pbq$uss@kernighan.cs.umass.edu>,
John Cavazos <cavazos@ibis.cs.umass.edu> wrote:
>Hello,
>
>I'm going to start a project that requires me using the Alpha OSF1 version of
>pthreads. I'm looking for any sample code that does simple sorts of things
>with pthreads, i.e. create, preempt, stop, etc. The test programs in the
>distribution of pthreads is the perfect thing, but I can't get it to compile
>on my Alpha box. Any pointers to any sample code would be greatly
>appreciated.
>
There are code snippets in the Bookreader section on pthreads.
--
Michael W. Walker mwwalker@uiuc.edu
University of Illinois at Urbana-Champaign
^ permalink raw reply [flat|nested] 3+ messages in thread
* Need help with AF_INET, SOCK_STREAM sockets
1995-12-09 5:00 ` Michael W. Walker
@ 1995-12-11 5:00 ` Chris Davis
0 siblings, 0 replies; 3+ messages in thread
From: Chris Davis @ 1995-12-11 5:00 UTC (permalink / raw)
I'm having problems with sockets. Specifically, Internet stream sockets
( AF_INET, SOCK_STREAM variety). My problem is that I cannot seem to
be able to get the SO_KEEPALIVE option to work. If you do a "man" on
setsockopt, you will notice that DEC claims an application will get
SIGPIPE if the connection is broken.
This is not the case under v2.0 of the O/S. I even tried the SO_ERROR
option of setsockopt() and interrogated the so_error field that it
returns.
No error such as ETIMEDOUT was ever returned.
My application always gets SIGPIPE if I write() to the socket after the
remote reader has died, but I desperately need a way to determine that
the
remote reader no longer has his socket connected WITHOUT doing a
write().
Thanks!
Chris Davis
cmdavis@ix.netcom.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-12-11 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-08 5:00 Alpha/OSF1 pthreads sample code anywhere? John Cavazos
1995-12-09 5:00 ` Michael W. Walker
1995-12-11 5:00 ` Need help with AF_INET, SOCK_STREAM sockets Chris Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox