RPC problem

RPC problem

Post by Christophe Beljouani (Toulou » Fri, 31 Jan 1997 04:00:00



Hi there !

I have the following problem using RPC. With rpcgen , I built a client
and a server. The client use a remote function and get a structure.
This structure is a linked one:

struct res
{
    int x;
    struct res *next;

Quote:}

The problem I have is that the function I use can send back
a linked structure which can contain a "big" number of element.
This code works basically with minus than 1000 elements and start
to fail with more elements. I suspect a problem with the size of
the TPC  (the used protocol) packets but ... nothing in the rpcgen
man pages mention such a limitation ...

If someone has an idea, please, let me know.

Thanks,
Christophe

 
 
 

RPC problem

Post by Ricardo Corr » Sat, 01 Feb 1997 04:00:00



Quote:Beljouani (Toulouse)) writes:

|>
|> Hi there !
|>
|> I have the following problem using RPC. With rpcgen , I built a client
|> and a server. The client use a remote function and get a structure.
|> This structure is a linked one:
|>
|> struct res
|> {
|>     int x;
|>     struct res *next;
|> }
|>
|> The problem I have is that the function I use can send back
|> a linked structure which can contain a "big" number of element.
|> This code works basically with minus than 1000 elements and start
|> to fail with more elements. I suspect a problem with the size of
|> the TPC  (the used protocol) packets but ... nothing in the rpcgen
|> man pages mention such a limitation ...
|>
|> If someone has an idea, please, let me know.
|>
|> Thanks,
|> Christophe
|>
|>
|>
|>
|>
|>
I do not understand why you would ever want to send a pointer
( to a local memory address ) over the network, it does not mean anything
at the other end, and might only work for testing purposes if both server
and client are running on the same machine.

Try sending only
struct res
{
  int x;

Quote:}

and create a new list at destination as the structs arrive.

--



 
 
 

1. Need help/advice with rpc problem

        Hi! I'm having problems with my server and
am not sure what files to look at for misconfigurations..
I'm hoping that someone out there might see these
error messages as obvious signposts to fix some file
somewhere..
I can mount nsf filesystems from other workstations
in the lab, but cannot seem to mount news or accoess
the oed2 server.. I've gotten the following errors:

Dec  9 15:46:02 enterprise mountd[11789]: couldn't register TCP MOUNTPROG
Dec  9 15:46:03 enterprise mountd[11790]: couldn't register TCP MOUNTPROG    
Dec  9 15:46:04 enterprise mountd[11791]: couldn't register TCP MOUNTPROG
Dec  9 15:46:06 enterprise mountd[11793]: couldn't register TCP MOUNTPROG
Dec  9 15:46:07 enterprise mountd[11794]: couldn't register TCP MOUNTPROG
Dec  9 15:46:08 enterprise mountd[11795]: couldn't register TCP MOUNTPROG
Dec  9 15:46:09 enterprise mountd[11796]: couldn't register TCP MOUNTPROG  
Dec  9 15:46:11 enterprise mountd[11797]: couldn't register TCP MOUNTPROG
Dec  9 15:46:12 enterprise mountd[11798]: couldn't register TCP MOUNTPROG      
(lots of these)

ste                                                                      

I've actually been able to mount the filesystem sometimes. I used
the IP address and it is mounted now, but when I try to use news
and actually read a posting, i get NNTP (or some such) not responding.
any clues? please email me with any suggestions :)
-Mark

2. Help: how to get the stats of a udp port

3. RPC problem with Solaris2.4

4. Useful link

5. RPC problem with 1.1.59?

6. shared library dependencies

7. Rpc Problem

8. no mysql on sparc64

9. mount/share/rpc problem

10. RPC problem after installing Disksuite

11. NFS portmap RPC problem

12. Sun RPC problem

13. rpc problems with linux