RpcService(3I) InterViews Reference Manual RpcService(3I)NAME
RpcService - support RPC between a service and its clients
SYNOPSIS
#include <Dispatch/rpcservice.h>
DESCRIPTION
An RpcService (actually, an instance of a derived class) creates a port and listens to it for connections from clients. When a client
opens a connection, the RpcService will create a reader to handle RPC requests from the connection.
CONSTRUCTORS
RpcService(int port)
RpcService(const char* path, int port = 0)
Start up an RPC service. If a filename is given, record the RPC service's hostname and port number in it so clients can contact the
service. If ``port'' is zero, the next free port number will be used.
PUBLIC OPERATIONS
void run()
void quitRunning()
Read RPC requests continuously until ``quitRunning()'' terminates the loop. If you're using InterViews, you don't have to call
``run()'' since the InterViews event-reading code will also read RPC requests.
PROTECTED OPERATIONS
virtual void createReader(int fd) = 0
You must define this function in a derived class in order to start servicing RPC requests from a new client. Typically all you have
to do is to construct a reader using the passed file descriptor and make the reader responsible for deleting itself when it notices
that the connection has been closed by the client.
SEE ALSO Dispatcher(3I), RpcReader(3I), RpcRegistry(3I)InterViews 27 March 1991 RpcService(3I)
Check Out this Related Man Page
RpcPeer(3I) InterViews Reference Manual RpcPeer(3I)NAME
RpcPeer - support bi-directional RPC between two services
SYNOPSIS
#include <Dispatch/rpcpeer.h>
DESCRIPTION
An RpcPeer (actually, an instance of a derived class) tries to open a connection to another RpcPeer. If the other RpcPeer is not yet run-
ning, the RpcPeer will create its own port and wait for the other RpcPeer to open a connection. When either RpcPeer opens a connection,
each RpcPeer will create both a reader and a writer so each RpcPeer can send RPC requests to its opposite over the same connection.
CONSTRUCTOR
RpcPeer(const char* lPath, int lPort = 0)
Store the arguments for later use since a base constructor can't call a derived class's virtual function. The derived class's con-
structor should call ``init'', described below.
void init(const char* rPath)
Find the host name and port number registered by the other RpcPeer and try to open a connection to it. If it's not running, create
our own port and wait for the other RpcPeer to open a connection.
PUBLIC OPERATIONS
void run()
void quitRunning()
Read RPC requests continuously until ``quitRunning()'' terminates the loop. If you're using InterViews, you don't have to call
``run()'' since the InterViews event-reading code will also read RPC requests.
PROTECTED OPERATIONS
virtual boolean createReaderAndWriter(const char* rHost, int rPort) = 0
virtual void createReaderAndWriter(int fd) = 0
You must define both functions in a derived class in order to start reading and writing RPC requests over the connection. Typically
both functions would create a writer using the given parameters and then attach a reader to the writer's rpcstream.
SEE ALSO Dispatcher(3I), RpcReader(3I), RpcRegistry(3I), RpcWriter(3I)InterViews 27 March 1991 RpcPeer(3I)
I have a piece of equipment, a Baytech RPC-3, that I need to communicate with through the com port.
I normally use this equipment at home and am able to connect to it without problems using FC5 and minicom; I brought the equipment into work and cannot get my pc, using Suse 10 and minicom to... (0 Replies)
I would like to get the path of acrobat reader for any unix pc.
right now the path of acrobat reader is hardcoded
BEGIN
if :global.system = 'HP-UX' then
HOST('/opt/Acrobat4/bin/acroread /export/USERGUIDE.pdf');
else
v_path :=... (3 Replies)
Discussion started by: ramirezmc
3 Replies
4. Post Here to Contact Site Administrators and Moderators
hi,
i am new to socket programming.i have a problem in server.requirement is it should continuosly read the requests from client(sends requests continuously) and after certain delay(i kept der sleep) should send response.
for this i used msgqueues so that after reading it is sending into... (1 Reply)
Hey All,
Problem:
I have a application which runs on port 8153 (http) and on 8154 (https). For design reasons i can not block tcp connections to 8153.
How do i forward all requests from http 8153 to https 8154( this would be the ideal solution)
Or
redirect all requests that come to... (2 Replies)
Hi Folks,
I am facing a problem using RPC based connection between two different OS ( RHEL 5 and Windows XP).
We have a Camelot ( Cad Navigation Equipment - Running is RHEL5) which is connected to an FEI equipment ( Running in Windows XP).The connection uses an RPC based Driver for... (0 Replies)
Hi Folks,
I am facing a problem using RPC based connection between two different OS ( RHEL 5 and Windows XP).
We have a Camelot ( Cad Navigation Equipment - Running is RHEL5) which is connected to an FEI equipment ( Running in Windows XP).The connection uses an RPC based Driver for... (0 Replies)