HP3000-L Archives

January 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Wonsil <[log in to unmask]>
Reply To:
Date:
Tue, 14 Jan 2003 11:17:53 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
> From: "Per Ostberg" <[log in to unmask]>
> I'm having problems reading from a message file. My program is
> supposed to answer different types of requests (from a socket). One
> of the requests involves reading a message-file. The problem is that
> the messagefile may be empty and the writer may not be running, but I
> would still like to return from FREAD (so I can reply that there are
> no messages, and go on with other requests).
> What aoptions should I use in FOPEN for my FREAD to always return?
> Should I use FCONTROL( ,45,0)? IOWAIT?


If you haven't looked at it yet, the Interprocess Communications
Programmer's Guide can be quite helpful:

http://docs.hp.com/mpeix/onlinedocs/32650-90019/32650-90019.html

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2