socket example with libev