LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-17-2008, 05:12 PM   #1
devnux
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian for Server / Ubuntu for Desktop
Posts: 14

Rep: Reputation: 0
RPC Error : Can't encode arguments


Hi,
I am making a software in which I have to transfer files from a computer to another. I am using RPC to do this. I have problem with large files (not too large actually).
On my xdr I've declared the file content as an opaque type with variable length. I'v also tried with fixed length and for both I have encoding issues when the data transfered is too big (larger than 9000 octets).
Code:
struct import_args {
  opaque file<>;
};
Is there a limit for arguments length with RPC ? Is it configurable ?
Or do I have to call the RPC many times with each time a small part of the file till transfering all the file's data?

Thanks.
 
Old 06-19-2008, 06:12 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 64
I think the existence of a limit depends on the implementation (at least according to RFC 1831). I would guess that if there were a limit it would be 8192 rather than 9000 bytes. If these are linux machines perhaps you can change the limit through sysctl.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 02:14 AM
RPC error girish_hilage Linux - Server 3 11-16-2006 06:47 AM
An RPC error occured fdservices Linux - Networking 0 02-08-2006 10:40 AM
Set Encode - Operation not supported error notmetoo Linux - Wireless Networking 3 02-16-2005 05:50 AM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 12:10 AM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration