Get QNX 4 netstat data programmatically?

Is there any way to get the netstat data from within a program?

I’m trying to quickly determine when a socket connection is lost. I notice the output buffer begins to grow and thought about using that data to determine if the connection is down.


What kind of socket connection do you have?

If it’s tcp you can tell programmatically if the connection is lost without using netstat.