API Notes: CFNetwork framework

Introduction

An introduction to PyObjC describes the general method for translating Objective-C calls into Python calls, including the handling of pass-by-reference arguments and buffers.

This document describes where the PyObjC bindings for this framework are different from the general rule, such as mentioning APIs that are not supported or where the interface is different than expected.

API Notes

  • CFNetworkExecuteProxyAutoConfigurationScript and CFNetworkExecuteProxyAutoConfigurationURL

    The context argument can be an arbitrary Python object.

  • CFHostSetClient

    The context argument can be an arbitrary Python object, in particular the creation of a CFHostClientContext is performed by the bridge and is not exposed to Python.

  • CFNetServicesSetClient`

    The context argument can be an arbitrary Python object, in particular the creation of a CFNetServiceClientContext is performed by the bridge and is not exposed to Python.