Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rpcservice(3i) [debian man page]

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

RpcHdr(3I)						    InterViews Reference Manual 						RpcHdr(3I)

NAME
RpcHdr - header for remote procedure calls SYNOPSIS
#include <Dispatch/rpchdr.h> DESCRIPTION
An RpcHdr enables an RPC request to be sent or received. To send an RPC request, you would insert an RpcHdr into an rpcstream followed by any arguments and then flush the rpcstream if you wanted the request to be sent immediately. The rpcstream automatically fills in each RPC request's length field. To receive an RPC request, you would extract an RpcHdr from an rpcstream and examine the ``request()'' member to determine which additional arguments need to be extracted as well. You can examine the ``ndata()'' member too if you need to estimate how much space to allocate. CONSTRUCTORS
RpcHdr(void* writer, int request) RpcHdr(int request) RpcHdr() Construct an initialized header for an outgoing RPC request (first two constructors) or construct an uninitialized header for an incoming RPC request (third constructor). To initialize the header, you'll have to store the request's protocol number. You can also store the address of the writer sending the RPC request if you want to route the RPC request to a specific reader on the peer's side. PUBLIC OPERATIONS
unsigned long reader() int request() unsigned int ndata() Get information about the RPC request. ``reader()'' identifies the reader which should handle the RPC request. ``request()'' iden- tifies the action that should be performed. ``ndata()'' gives the number of data bytes following the header, which may be useful for estimating the amount of space that must be allocated to store an argument. SEE ALSO
RpcReader(3I), RpcWriter(3I), rpcstream(3I) InterViews 27 March 1991 RpcHdr(3I)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

RPC service

Hi All, How can I add RPC service in SCO 5.0.7. I did not find in the sco cd please help me Alice (0 Replies)
Discussion started by: alisevA3
0 Replies

2. UNIX for Dummies Questions & Answers

Setting com port questions

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)
Discussion started by: thumper
0 Replies

3. UNIX for Advanced & Expert Users

absolute path for Acrobat reader

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

socket programing-problem with server

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)
Discussion started by: chandinisree
1 Replies

5. UNIX for Dummies Questions & Answers

Redirecting requests from 8153 and blocking access to the same

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)
Discussion started by: Arun Kumar
2 Replies

6. Solaris

RPC Issue

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)
Discussion started by: asheshrocky
0 Replies

7. IP Networking

RPC Issue

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)
Discussion started by: asheshrocky
0 Replies