Sun's Remote Procedure Call is a set of services used by many Unix systems, like NFS (Network File System).
Questions tagged [sunrpc]
32 questions
0
votes
1 answer
Can multiple Sun RPC (ONC-RPC) program numbers be used on the same port?
An ONC RPC header contains a program number, version number, and procedure number to identify the call. Normally different RPC programs (services) are implemented by different processes, so the programs map to different TCP/UDP port numbers. If a…

Mark Gritter
- 162
- 2
- 8
0
votes
1 answer
rpc/rpc.h file not found on windows
I am working on sunrpc library developed by Sun Microsystems on windows.
I have downloaded GnuWin32 sunrpc4.0 on windows 10.
I am running rpcgen -a -C -Y "C:/MinGW/bin" add.x command and I am able to get .c , .h and Makefile files.
Now I am…

shravani
- 11
- 4
0
votes
0 answers
sunrpc implementation in python
I wanted to create sunrpc client in python using xdrlib library and sunrpc server is already implemented in C. I have implemented one rpc client in python over udp by referencing following…

shravani
- 11
- 4
0
votes
1 answer
when do we get PORTMAP procedure GETADDR and GETPORT
Can someone comment on how and at which level in portmap program version is decided.
Actually in 2 different environments I am getting different Procedure and program version.
in case 1 : I am getting Program version as 2 and procedure GETPORT
in…

AMS
- 29
- 4
0
votes
1 answer
Clean Exit of ONC RPC SVC_RUN() with MFC
I'm pretty new to multi-threaded code, so I'm hoping that someone can help me with the problem I have.
I have a multi-part program comprised of an ONC/RPC server and other stuff (the "stuff" isn't really pertinent to my question, but it must be in…

Lex
- 1
- 2
0
votes
1 answer
Set up SUN RPC on an Amazon EC2 instance
Can anyone help ? I'm stuck. I have an EC2 instance, and a client/server Sun RPC app that works fine locally.
The server part runs ok on the EC2 instance (starts, waits for client connections.
The client portion running on my home PC always…

MalcolmH
- 33
- 4
0
votes
1 answer
How do I free the memory allocated in my RPC server?
I have an RPC server that transfers a large amount of variable length data to the client. The .x file looks something like this
struct file
{
opaque data<>
};
In the server routine, I have
struct file *transfer_1_svc(...)
{
struct file;
…

steve landiss
- 1,833
- 3
- 19
- 30
0
votes
3 answers
Why does an RPC call fail in a C program called from Groovy on Linux?
We have a program, written in C, that uses RPC to communicate with another program (also written in C) on the same Linux server (in some production setups, the second C program would on another machine, therefore RPC instead of IPC).
When called…

Erich Kitzmueller
- 36,381
- 5
- 80
- 102
0
votes
1 answer
sending a struct array with sun rpc from server to client
how can i correctly send a struct from the server to the client in ansi-c sun-rpc?
in my test.x IDL file i defined a struct cluster with a string and an int
and a type clusters which is a variable-length array of cluster elements:
struct cluster {
…

larso
- 3
- 1
- 5
0
votes
1 answer
ssize_t data type in XDR for RPC
I am writing an RPC application. I need to use ssize_t data type in the C portion and it needs to be sent over the wire. What should I represent ssize_t as in the IDL? I can cast it to int but I want to know the correct way to do it than just…

powerrox
- 1,334
- 11
- 21
0
votes
1 answer
Protobuf object received does not have all fields
I am creating a c++ implementation of HDFS, using ONCRPC and Google Protobuf. The issue I'm facing is that I'm sending a protobuf object with multiple fields populated (sending the serialized string, parsing from it at the receving end), however, at…

lip
- 114
- 1
- 11
0
votes
2 answers
what is a protocol compiler ? why is rpcgen known as a protocol compiler?
Why is rpcgen known as a protocol compiler ? I am aware of the basics of Remote Procedure Call but m unaware of the term Protocol Compiler and cannot find a solution anywhere.

user1707873
- 1,307
- 2
- 10
- 10
0
votes
0 answers
RPCGEN over Unix domain sockets
My requirement is to make RPC calls between different processes. By nature these calls are 1-1; meaning single sender single receiver. I am architecturally restricted to use only unix domain sockets for this purpose.
I wanted to use 'rpcgen' towards…

isud
- 11
- 5
0
votes
1 answer
Send struct from client and save to server in linked list with SUN-RPC
I want to write a server/client program using RPC which transfers a struct from a client (containing some strings) to the server. This struct has to be saved on the server using a linked list. At this moment, I have the following…

Froodooo
- 177
- 1
- 9
0
votes
1 answer
RPC calls between Linux and Solaris
I have a RPC server running in Solaris. I have a RPC client which is running fine in Solaris.
When I compile and run the same code in Linux (RHEL 5 or 6), I am getting Error decoding arguments in the server.
How should I find out the issue?
The some…

Zeratul
- 1
- 1