Fixing error in example: as_tcp() was renamed to tcp()