boost::filesystem::is_socket
// In header: <boost/filesystem/file_status.hpp> bool is_socket(file_status f);
Returns:
f.type() == socket_file.
f.type() == socket_file