🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.wizards
3 messages
3 total messages Started by Jim Moore Mon, 11 Jan 1993 14:19
RPC, Sockets and file descriptors
#6993
Author: Jim Moore
Date: Mon, 11 Jan 1993 14:19
20 lines
1064 bytes
I am looking at using XtAppAddInput in conjunction with RPC.  I need a file
descriptor for XtAppAddInput.  The documentation on RPC says that you can
have your own select that waits on your own descriptors, so it must be possible
to get the descriptor for the RPC socket.  There is a lot of documentation
to weed through to figure out how to do it.

Question:  Does anyone out there have a C code segment that gets the file
descriptor of an RPC socket?  If so, could you be so gracious as to send it
to me?


Thanks in advance,

Jim

-- 
Jim Moore                       Hughes Training Inc.
Phone: (612) 572-7721           5301 East River Road
Fax:   (612) 572-7732           Mpls, Mn. 55421-1024
Email: jfm@asf.com              USA
Re: RPC, Sockets and file descriptors
#6995
Author: Anna Pluzhnikov
Date: Tue, 12 Jan 1993 03:12
23 lines
1559 bytes
In article <1993Jan11.141906.13294@asf.com> jfm@asf.com (Jim Moore) writes:
>I am looking at using XtAppAddInput in conjunction with RPC.  I need a file
>descriptor for XtAppAddInput.  The documentation on RPC says that you can
>have your own select that waits on your own descriptors, so it must be possible
>to get the descriptor for the RPC socket.  There is a lot of documentation
>to weed through to figure out how to do it.
>
>Question:  Does anyone out there have a C code segment that gets the file
>descriptor of an RPC socket?  If so, could you be so gracious as to send it
>to me?
>
>
Sorry to post here, I am not a wizard :-(

Here are some references to check:

John Bloomer, RPC programming in X applications, 
in "The X Resource", Issue 4, O'Reilly

John Bloomer, Power programming with RPC, O'Reilly, 1992
Chapter 10: RPC Under Windowing Systems.
--------------------------------------------------------------------------------
Anna Pluzhnikov		besp@ellis.uchicago.edu		312/955-5784
Re: RPC, Sockets and file descriptors
#7001
Author: Bruce Krawetz
Date: Tue, 12 Jan 1993 21:15
35 lines
1805 bytes
In article <1993Jan11.141906.13294@asf.com>, jfm@asf.com (Jim Moore) writes:
# I am looking at using XtAppAddInput in conjunction with RPC.  I need a file
# descriptor for XtAppAddInput.  The documentation on RPC says that you can
# have your own select that waits on your own descriptors, so it must be possible
# to get the descriptor for the RPC socket.  There is a lot of documentation
# to weed through to figure out how to do it.
# 
# Question:  Does anyone out there have a C code segment that gets the file
# descriptor of an RPC socket?  If so, could you be so gracious as to send it
# to me?
# 
# 
# Thanks in advance,
# 
# Jim
# 
# -- 
# Jim Moore                       Hughes Training Inc.
# Phone: (612) 572-7721           5301 East River Road
# Fax:   (612) 572-7732           Mpls, Mn. 55421-1024
# Email: jfm@asf.com              USA

-- 


me no wizard, but me got Source Code!  me LOVE archie when searching
for 'rpcgen'.  me also have man-pages, but me no read them. 8-)

The functions  clntudp_create()  and clnttcp_create()  will use any socket
you specify, or choose (open, and return) a 'random' socket if you dont
specify.  The function  clnt_control()  can return the current socket.


-------- bmk@box.ssl.loral.com --------
We must learn from our mistakes, so that we may make bigger and better ones.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads