[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

using TCP/IP (UCX) auxiliary server?

» close window

The Question is:

 
Where are creating our own service similar to TFTP. We have registered the
service with UCX using the SET SERVICE command. Though our application does
startup we
we are unable to 'accept' the connection that the UCX listen service
noticed. The first thing the application performs is 'accept' on the file
descriptor 0.
We are assuming that the UCX service acts similar to UNIX INETD deamon and
thus redirects the standard input descriptor 0 to the socket which the
listener accepted.
When we accept the connection (socket_fd=accept(STDIN, .....) ) we get a
VAXC$ERRNO of '%SYSTEM-F-IVCHAN, invalid I/O channel' .
What should we do in order to accept the connection descriptor which the UCX
SERVICE LISTENER accepted ???
Are there any examples of SERVICE handlers ??? (In UCX$EXAMPLES there are
only client/server examples which are not relevant to this issue)
 
Thanks,
Yoad
yoad@telaviv.ndsoft.com
 
 


The Answer is :

 
  Please check the documentation -- the Wizard would tend to expect the
  use of sys$net.  Also please see SYS$SYSROOT:[SYSHLP.EXAMPLES.UCX]*AUX*.C
  for related example C code.

answer written or last revised on ( 3-NOV-1998 )

» close window