fixed warning about flock()
added an example of receiving broadcast messages