<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_network_create_with_serialization(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@F@vmnet_network_create_with_serialization"
  },
  "title" : "vmnet_network_create_with_serialization(_:_:)"
}
-->

# vmnet_network_create_with_serialization(_:_:)

Creates a vmnet network from an XPC object you obtained from calling the vmnet networkcopy serialization API.

```
func vmnet_network_create_with_serialization(_ network: xpc_object_t, _ status: UnsafeMutablePointer<vmnet_return_t>?) -> vmnet_network_ref?
```

## Parameters

`network`

The xpc object from which to create the network

`status`

Optional output parameter, returns status.

## Return Value

Network object in [`vmnet_network_ref`](/documentation/vmnet/vmnet_network_ref), `NULL` otherwise. The `status` contains the error code.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)