public function __construct($secret, $options = array())
{
$consumers = array("socket" => "Segment_Consumer_Socket", "file" => "Segment_Consumer_File", "fork_curl" => "Segment_Consumer_ForkCurl", "lib_curl" => "Segment_Consumer_LibCurl");
# Use our socket consumer by default
$consumer_type = isset($options["consumer"]) ? $options["consumer"] : "lib_curl";
$Consumer = $consumers[$consumer_type];
$this->consumer = new $Consumer($secret, $options);
}