github.com/sagernet/wireguard-go@v0.0.0-20231215174105-89dec3b2f3e8/ipc/uapi_wasm.go (about)

     1  /* SPDX-License-Identifier: MIT
     2   *
     3   * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
     4   */
     5  
     6  package ipc
     7  
     8  // Made up sentinel error codes for {js,wasip1}/wasm.
     9  const (
    10  	IpcErrorIO        = 1
    11  	IpcErrorInvalid   = 2
    12  	IpcErrorPortInUse = 3
    13  	IpcErrorUnknown   = 4
    14  	IpcErrorProtocol  = 5
    15  )