First, I installed the RPMs obtained from unicon.sourceforge.net and am
using them. (This is because I am unable to compile unicon on my Mandrake
7.1 system.  Fixing that is another project for another day.)

The filepair.icn and udp.icn tests compile just fine as long as I comment
out the 
$include "posix.icn"
statement.  Also, I notice that I have no IPATH or LPATH environment
variables set.

When compiled and executed, udp.icn says "connection timed out", and for
filepair.icn, if I change the else clause of parent to

      else {
         write("parent: nothing to write")
         delay(1)
      }

it prints 
parent: nothing to write
twenty times.

Does this mean that my RPM-based installation of unicon is broken, or that I
have some environment variable setup to do for IPATH and LPATH? 

-----Original Message-----
From: Rev.Shamim Mohamed D.D.
To: Art Eschenlauer
Cc: ''[EMAIL PROTECTED]' '
Sent: 3/11/02 9:21 PM
Subject: RE: [Unicon-group] help: how to use UDP network functions of Unicon
on Linux?

 > I see with netstat -an that it is listening on localhost
 > UDP port 2842 if I use f := open(":2842","nua") but if I use
 > f := open("localhost:2842","nua") then open fails.

First, my apologies for taking this long to respond.

It depends on if your host can do a hostname lookup (using
gethostbyname(3)) on "localhost". If the hostname is not specified, it
means it should listen on all available network interfaces.

(I have no idea if any of this works on Windows. On OpenBSD and Linux
it works.)

I'd recommend looking at the code in tests/posix/udp.icn - run it and
see if it works for you. (You had a filepair() question also, right?
The tests directory has a filepair.icn you should look at.)

Incidentally, instead of &errortext try sys_errstr(&errno). 
I don't think we hooked &errortext up to errno for the POSIX
functions.

-s

_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to