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
11
votes
4 answers
Sun RPC: transferring binary files
I want to transfer binary files to remote server. I am using SUN/ONC RPC (rpcgen on Linux) for my code. I am using C. I have written code for server and client and it works for text files, but when I try to transfer binary files it says the file is…

Madhusudan.C.S
- 831
- 1
- 7
- 19
4
votes
2 answers
SunRPC enable one way messaging (streaming / batching?)
We have some services utilizing SunRPC on Linux (RHEL 4/5) that we'd like to speed up.
Our RPC call require no return value, though by the nature of RPC, an ack is always sent anyway. This introduces latency that's recently become a problem - when…

Anonym
- 525
- 2
- 6
- 12
4
votes
1 answer
Can't Encode Arguments in Remote Procedure Call for Server Registration
I'm going a bit crazy trying to figure out why this isn't working. I'm using sunrpc, but the generated server code throws the following:
Cannot register service: RPC: Can't encode arguments
unable to register (MYRPC, MYRPC_V1, udp).
I have no…

JNYRanger
- 6,829
- 12
- 53
- 81
2
votes
2 answers
Limitations of SunRPC mechanism as a Client-Dispatcher-Server architecture and comparison with Broker
I am reading a book on design patterns (an old edition) "Pattern-oriented software architecture". In the chapter dedicated to Client-Dispatcher-Server, SunRPC is cited as a Client-Dispatcher-Server architecture, with portmapper acting as Dispatcher…

Stefano Borini
- 138,652
- 96
- 297
- 431
2
votes
1 answer
Understanding XDR specification to create a *.x file
I have been looking through several websites on the Internet and actually wanted to know how do we write specification in a .x file to generate equivalent functions in .c file for RPC. Every site I visited suggested to use following kind of…

Rohit
- 604
- 1
- 10
- 25
2
votes
0 answers
rpcbind authorization problems
I am using rpcbind (SunRPC) on Arch linux and the Python rpc.py (which use standard python socket module) interface for comunication with it. Every time I try to send a request for registration or unregistration to rpcbind, I get message that I am…

Milan
- 71
- 1
- 7
2
votes
0 answers
RPC: Unable to receive; errno = Connection refused
I am trying to do a simple Sun RPC program which is a phonebook. It sends and receives commands like adding or removing someone to server and server responds back with a message.
When I run the both programs(Server and Client) after the first…

Younes Nj
- 566
- 8
- 16
1
vote
1 answer
after generate the rpc files and try to compile it i get an conflict error
It's my first day trying to figure out rpcgen and I can't quite understrand 2 things. First of all, how am I able to return a pointer from a procedure. But my main question is why am i getting this error when I try to compile it after I generate it.…

Padelis
- 41
- 6
1
vote
2 answers
Error with package: glibc-header in FEDORA 30
I am using fedora 30.
In order to install Madagascar (a seismic package), there is a ./configure code, which one test a several requirements.
there is an error with glibc-headers:
Needed package: glibc-headers
Fatal missing dependency
in…

Paul Goyes
- 59
- 8
1
vote
0 answers
How can I implement multiple servers and server side replication in SUN-RPC?
I am trying to implement multiple clients and multiple servers using Sun-RPC. However, I am unable to run multiple servers at the same time to begin with.
Here's the IDL
const MAXLEN = 1024;
typedef string filename;
typedef int…

GundamOfOasis
- 19
- 5
1
vote
1 answer
linux rpc order and retransmision
We use RPC (udp socket) in our application and we noticed that RPC retransmit it messages when it was not received (or confirmed) by the target application.
Does RPC present the order of messages? let say we have message 1 and message 2, does it…

Jan
- 1,054
- 13
- 36
1
vote
1 answer
File transfer using RPC(any type of file)
I want to construct a RPC Program to transfer any type of files. But I am getting segmentation fault after running the client:such as
./file_client localhost
>get /home/ab/1.txt
>put /home/1.txt
Segmentation Fault
For your convenience I am pasting…

user2015915
- 97
- 1
- 2
- 12
1
vote
0 answers
adding proprietary transport for sunrpc
I am trying to implement a RPC mechanism in an embedded SoC. The SoC has a dual-core cortexA9, with one core running ThreadX and the other running Linux 3.8.
My question is:
Is Sunrpc a good choice for this?
As far as I know, sunrpc on Linux only…

Joey
- 133
- 1
- 7
1
vote
1 answer
Transfer a file from client to server using SUN RPC
I am trying to transfer a text file from a client to a server implemented using SunRPC. I was able to transfer the data but only the first four characters. Initially I could only get one character as the data type of the variable that I had defined…

Bithin
- 409
- 1
- 7
- 16
1
vote
1 answer
Sending binary files over Sun RPC
I'm trying to implement a small client-server program using Sun RPC. One function I would like it to have is for the client to be able to upload a file of any format to the server.
Right now I have this specification:
struct add_in{
string…

Linus
- 1,113
- 1
- 8
- 14