Basicly I was looking for a replacement for dev_fdinfo(), to find out,
if a task or one of it’s parents is connected to a socket (or not) and
what the local and remote IP adresses are.
PROGRAM PID
//9/*/usr/ucb/telnetd 8668
0 -//9 T 10.250.3.9.23 10.250.3.31.33401 ESTABLISHED
1 -//9 T 10.250.3.9.23 10.250.3.31.33401 ESTABLISHED
2 -//9 T 10.250.3.9.23 10.250.3.31.33401 ESTABLISHED
3C-//9/dev/ptyp6
I wonder, how I could achieve the same with QNX6 – not necessarily
with dev_fdinfo().
Basicly I was looking for a replacement for dev_fdinfo(), to find out,
if a task or one of it’s parents is connected to a socket (or not) and
what the local and remote IP adresses are.
The migration guide says:
dev_fdinfo()
QNX Neutrino equivalent:
No longer supported.
In migration library?
No
You can’t get all the information, but you can get bits and
pieces elsewhere.
You might take a look at ConnectClientInfo() and ConnectServerInfo().
This will at least tell you who the fds are connected to.
Call dev_fdinfo(pid,…) for stdin and stdout
and find out if one of them is a socket;
Return local and remote IP address;
I don’t know of a way to get the IP address from outside the
process.
Grandfather:
PROGRAM PID
//9/*/usr/ucb/telnetd 8668
0 -//9 T 10.250.3.9.23 10.250.3.31.33401 ESTABLISHED
1 -//9 T 10.250.3.9.23 10.250.3.31.33401 ESTABLISHED
2 -//9 T 10.250.3.9.23 10.250.3.31.33401 ESTABLISHED
3C-//9/dev/ptyp6
“sin fd” under QNX6 doesn’t give the IP addresses or socket status,
it just reports the fd as being connected to the pid of io-net.
I wonder, how I could achieve the same with QNX6 – not necessarily
with dev_fdinfo().
dev_fdinfo()
QNX Neutrino equivalent:
No longer supported.
In migration library?
No
You can’t get all the information, but you can get bits and
pieces elsewhere.
I’ve read this (unfortunately there are quite a lot of ‘nor supported’
items
You might take a look at ConnectClientInfo() and ConnectServerInfo().
This will at least tell you who the fds are connected to.
I’ll dig into this …
A little frustrating, but thank you for the quick answer, anyway.