Article View: comp.windows.interviews
Article #1119rpcpeer
From: Jean-Claude Dulac
Date: Thu, 09 May 1991 23:17
Date: Thu, 09 May 1991 23:17
29 lines
1494 bytes
1494 bytes
I have a problem understanding the RpcPeer class and in implemented
the virtual functions createReaderAndWriter. The documentation specifies
that you would typically create a writer and then attach a reader to the
writer's rpcstream. I go ahead with the following code:
boolean Service::createReaderAndWriter(cosnt char *rHost,int rPort) {
writer = new Writer(rHost,rPort);
new Reader(&(writer-> server()), this) ;
}
But when the Writer constructer is called I get the following message:
rpcbuf::underflow: read: Operation would block
and later I get a segmentation fault in rpcbuf::error called from
rpcbuf::read_request.
First question: What am I doing wrong?
The second question is: The RpcPeer on the other side of the connection
(the first to be created) never calls createReaderAndWriter.
It starts listening and run for ever. Why createReaderAndWriter never
get called?
Any help would be greatly appreciated.
Thanks.
-Jean-Claude Dulac
Technical Details
Message-ID:
<9105092317.AA23855@st.unocal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!mips!carbon!stanford.edu!sunkist.west.sun.com!unocal!jcdShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!mips!carbon!stanford.edu!sunkist.west.sun.com!unocal!jcd From: unocal!jcd@sunkist.west.sun.com (Jean-Claude Dulac) Newsgroups: comp.windows.interviews Subject: rpcpeer Message-ID: <9105092317.AA23855@st.unocal.com> Date: 9 May 91 23:17:50 GMT Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Lines: 29