title: Can I ping inside a C program
body: <p>Just wanted to start by saying I'm pretty new to C programming, so I'm not sure if this is possible. Basically I have a broker running that can have multiple publishers/subscribers connected to it, and I need to be able to ping the broker from inside the publishers/subscribers so that I can determine if the connection is bad. Can this be done? Or would there be a better way for determine a bad connection from within a C program?</p>