thanks for the info, Antoon
"Antoon van Os"
<Antoon_van_Os@PitA To: "Easy400Group" <Easy400Group@yahoogroups.com
dvisor.com> cc: "Ludo Dupont" <Ludo_Dupont@...
>, "Danny Vandersteen"
31/08/2004 10:58 Subject: [Easy400Group] FW: peer address
Please respond to
Although no one replied on this mail, I am happy to tell
you I found the problem.
I was not being enough of a C programmer I fear.
The third param is not an int but a POINTER TO an integer...
Now it works perfectly.
So if anyone needs access to a clients IP address regardless
of which IP protocol is being used, this is the answer.
What helped me find it was googling to :
A very good site if you - like me - want to use C functions
in ILE RPG. Although it is in french...
For those who are not familiar enough with the language of
Molière, I found out it is partially based on one of Brian
These are in english and can be found on:
From: Antoon van Os [mailto:Antoon_van_Os@...
Sent: maandag 30 augustus 2004 16:20
Subject: peer address
Although this is - strictly speaking - not an EASY400 problem,
I am taking my chances here.
In a socket application that I based on examples from the "Who knew
I would like to get access ( from inside the server program ), to the
In easy400 this is accomplished by
S_addr = getenv('REMOTE_ADDR':qusec);
but that works for HTTP only.
How do i do this in a socket server ?
I tried the 'getpeername' API but cannot get it to work, I pass it the SD2,
to a socketaddr structure and an integer for the actual length but it keeps
RC = -1. Anybody who knows what I am doing wrong ?
Thanks for your help,
Yahoo! Groups Sponsor
Yahoo! Groups Links
To visit your group on the web, go to:
To unsubscribe from this group, send an email to:
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.