Implement socket_export_stream()

Add a complementing function for `socket_import_stream()`