[][src]Function dart_sys::Dart_NewNativePort

pub unsafe extern "C" fn Dart_NewNativePort(
    name: *const c_char,
    handler: Dart_NativeMessageHandler,
    handle_concurrently: bool
) -> Dart_Port

Creates a new native port. When messages are received on this native port, then they will be dispatched to the provided native message handler.

\param name The name of this port in debugging messages. \param handler The C handler to run when messages arrive on the port. \param handle_concurrently Is it okay to process requests on this native port concurrently?

\return If successful, returns the port id for the native port. In case of error, returns ILLEGAL_PORT.