detect lost of carrier

hello,

I would like to detect the lost of carrier on Ethernet ( ie. disconnected
wires ) , before sending broadcast message.
Does it exist a function in the QNX6 API to do this ?

Philippe.