Documentation
¶
Overview ¶
Package multipeerconnectivity provides a fluent Go API over the macOS MultipeerConnectivity framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Errors ¶
Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.
Main-thread requirements ¶
Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.
Delegates ¶
A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.
Index ¶
- Variables
- func KMCSessionMaximumNumberOfPeers() uint
- func KMCSessionMinimumNumberOfPeers() uint
- func MCErrorDomain() obj.Object
- type AdvertiserAssistant
- func (aa *AdvertiserAssistant) Description() string
- func (aa *AdvertiserAssistant) DiscoveryInfo() map[string]string
- func (aa *AdvertiserAssistant) IsEqual(other obj.Object) bool
- func (aa *AdvertiserAssistant) IsKind(className string) bool
- func (aa *AdvertiserAssistant) ServiceType() string
- func (aa *AdvertiserAssistant) Session() *Session
- func (aa *AdvertiserAssistant) Start()
- func (aa *AdvertiserAssistant) Stop()
- func (aa *AdvertiserAssistant) String() string
- func (aa *AdvertiserAssistant) WithDelegate(delegate AdvertiserAssistantDelegate) *AdvertiserAssistant
- type AdvertiserAssistantDelegate
- type AdvertiserAssistantDelegateAdvertiserAssistantDidDismissInvitationHandler
- type AdvertiserAssistantDelegateAdvertiserAssistantWillPresentInvitationHandler
- type BrowserViewController
- func BrowserViewControllerFromID(id objc.ID) *BrowserViewController
- func NewBrowserViewControllerWithBrowserSession(browser *NearbyServiceBrowser, session *Session) *BrowserViewController
- func NewBrowserViewControllerWithServiceTypeSession(serviceType string, session *Session) *BrowserViewController
- func (bvc *BrowserViewController) Browser() *NearbyServiceBrowser
- func (bvc *BrowserViewController) Description() string
- func (bvc *BrowserViewController) IsEqual(other obj.Object) bool
- func (bvc *BrowserViewController) IsKind(className string) bool
- func (bvc *BrowserViewController) MaximumNumberOfPeers() int
- func (bvc *BrowserViewController) MinimumNumberOfPeers() int
- func (bvc *BrowserViewController) Session() *Session
- func (bvc *BrowserViewController) String() string
- func (bvc *BrowserViewController) WithDelegate(delegate BrowserViewControllerDelegate) *BrowserViewController
- func (bvc *BrowserViewController) WithMaximumNumberOfPeers(maximumNumberOfPeers int) *BrowserViewController
- func (bvc *BrowserViewController) WithMinimumNumberOfPeers(minimumNumberOfPeers int) *BrowserViewController
- type BrowserViewControllerDelegate
- type BrowserViewControllerDelegateBrowserViewControllerShouldPresentNearbyPeerWithDiscoveryInfoHandler
- type CGLCPContextPriorityRequest
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EncryptionPreference
- type EntryID
- type ErrorCode
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type NearbyServiceAdvertiser
- func (nsa *NearbyServiceAdvertiser) Description() string
- func (nsa *NearbyServiceAdvertiser) DiscoveryInfo() map[string]string
- func (nsa *NearbyServiceAdvertiser) IsEqual(other obj.Object) bool
- func (nsa *NearbyServiceAdvertiser) IsKind(className string) bool
- func (nsa *NearbyServiceAdvertiser) MyPeerID() *PeerID
- func (nsa *NearbyServiceAdvertiser) ServiceType() string
- func (nsa *NearbyServiceAdvertiser) StartAdvertisingPeer()
- func (nsa *NearbyServiceAdvertiser) StopAdvertisingPeer()
- func (nsa *NearbyServiceAdvertiser) String() string
- type NearbyServiceAdvertiserDelegate
- type NearbyServiceBrowser
- func (nsb *NearbyServiceBrowser) Description() string
- func (nsb *NearbyServiceBrowser) InvitePeerToSessionWithContextTimeout(peerID *PeerID, session *Session, context_ []byte, timeout float64)
- func (nsb *NearbyServiceBrowser) IsEqual(other obj.Object) bool
- func (nsb *NearbyServiceBrowser) IsKind(className string) bool
- func (nsb *NearbyServiceBrowser) MyPeerID() *PeerID
- func (nsb *NearbyServiceBrowser) ServiceType() string
- func (nsb *NearbyServiceBrowser) StartBrowsingForPeers()
- func (nsb *NearbyServiceBrowser) StopBrowsingForPeers()
- func (nsb *NearbyServiceBrowser) String() string
- func (nsb *NearbyServiceBrowser) WithDelegate(delegate NearbyServiceBrowserDelegate) *NearbyServiceBrowser
- type NearbyServiceBrowserDelegate
- type NearbyServiceBrowserDelegateBrowserDidNotStartBrowsingForPeersHandler
- type OSClockid
- type OSUnfairLockFlags
- type PMPageToPaperMappingType
- type PeerID
- type Perm
- type PtrauthKey
- type QosClass
- type Session
- func (s *Session) CancelConnectPeer(peerID *PeerID)
- func (s *Session) ConnectPeerWithNearbyConnectionData(peerID *PeerID, data []byte)
- func (s *Session) ConnectedPeers() []*PeerID
- func (s *Session) Description() string
- func (s *Session) Disconnect()
- func (s *Session) EncryptionPreference() EncryptionPreference
- func (s *Session) IsEqual(other obj.Object) bool
- func (s *Session) IsKind(className string) bool
- func (s *Session) MyPeerID() *PeerID
- func (s *Session) NearbyConnectionDataForPeer(ctx context.Context, peerID *PeerID) (result obj.Object, err error)
- func (s *Session) SecurityIdentity() obj.Object
- func (s *Session) SendDataToPeersWithMode(data []byte, peerIDs []*PeerID, mode SessionSendDataMode) error
- func (s *Session) SendResourceAtURLWithNameToPeerWithCompletionHandler(resourceURL string, resourceName string, peerID *PeerID, ...) *foundation.Progress
- func (s *Session) StartStreamWithNameToPeer(streamName string, peerID *PeerID) (result *foundation.OutputStream, err error)
- func (s *Session) String() string
- func (s *Session) WithDelegate(delegate SessionDelegate) *Session
- type SessionDelegate
- type SessionSendDataMode
- type SessionState
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
var ErrCancelled = errkit.New("MCErrorDomain", 5)
ErrCancelled matches the MultipeerConnectivity error MCErrorCancelled.
var ErrInvalidParameter = errkit.New("MCErrorDomain", 2)
ErrInvalidParameter matches the MultipeerConnectivity error MCErrorInvalidParameter.
var ErrNotConnected = errkit.New("MCErrorDomain", 1)
ErrNotConnected matches the MultipeerConnectivity error MCErrorNotConnected.
var ErrTimedOut = errkit.New("MCErrorDomain", 4)
ErrTimedOut matches the MultipeerConnectivity error MCErrorTimedOut.
ErrUnavailable matches the MultipeerConnectivity error MCErrorUnavailable.
var ErrUnknown = errkit.New("MCErrorDomain", 0)
ErrUnknown matches the MultipeerConnectivity error MCErrorUnknown.
var ErrUnsupported = errkit.New("MCErrorDomain", 3)
ErrUnsupported matches the MultipeerConnectivity error MCErrorUnsupported.
Functions ¶
func KMCSessionMaximumNumberOfPeers ¶
func KMCSessionMaximumNumberOfPeers() uint
KMCSessionMaximumNumberOfPeers returns the value of the constant kMCSessionMaximumNumberOfPeers.
func KMCSessionMinimumNumberOfPeers ¶
func KMCSessionMinimumNumberOfPeers() uint
KMCSessionMinimumNumberOfPeers returns the value of the constant kMCSessionMinimumNumberOfPeers.
func MCErrorDomain ¶
MCErrorDomain returns the string constant MCErrorDomain, for use as a dictionary key or argument.
Types ¶
type AdvertiserAssistant ¶ added in v0.17.0
AdvertiserAssistant is an idiomatic wrapper over the Objective-C class MCAdvertiserAssistant.
The MCAdvertiserAssistant is a convenience class that handles advertising, presents incoming invitations to the user, and handles users’ responses. Use this class to provide a user interface for handling invitations when your app does not require programmatic control over the invitation process.
func AdvertiserAssistantFromID ¶ added in v0.17.0
func AdvertiserAssistantFromID(id objc.ID) *AdvertiserAssistant
AdvertiserAssistantFromID adopts an existing Objective-C object as a AdvertiserAssistant (nil for 0), retaining it and registering a release finalizer.
func NewAdvertiserAssistantWithServiceTypeDiscoveryInfoSession ¶ added in v0.17.0
func NewAdvertiserAssistantWithServiceTypeDiscoveryInfoSession(serviceType string, info map[string]string, session *Session) *AdvertiserAssistant
NewAdvertiserAssistantWithServiceTypeDiscoveryInfoSession initializes an advertiser assistant object.
func (*AdvertiserAssistant) Description ¶ added in v0.17.0
func (aa *AdvertiserAssistant) Description() string
Description returns the object's -description text.
func (*AdvertiserAssistant) DiscoveryInfo ¶ added in v0.17.0
func (aa *AdvertiserAssistant) DiscoveryInfo() map[string]string
DiscoveryInfo returns the discovery info.
func (*AdvertiserAssistant) IsEqual ¶ added in v0.17.0
func (aa *AdvertiserAssistant) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AdvertiserAssistant) IsKind ¶ added in v0.17.0
func (aa *AdvertiserAssistant) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AdvertiserAssistant) ServiceType ¶ added in v0.17.0
func (aa *AdvertiserAssistant) ServiceType() string
ServiceType returns the service type.
func (*AdvertiserAssistant) Session ¶ added in v0.17.0
func (aa *AdvertiserAssistant) Session() *Session
Session returns the session.
func (*AdvertiserAssistant) Start ¶ added in v0.17.0
func (aa *AdvertiserAssistant) Start()
Start begins advertising the service provided by a local peer and starts the assistant.
func (*AdvertiserAssistant) Stop ¶ added in v0.17.0
func (aa *AdvertiserAssistant) Stop()
Stop stops advertising the service provided by a local peer and stops the assistant.
func (*AdvertiserAssistant) String ¶ added in v0.17.0
func (aa *AdvertiserAssistant) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AdvertiserAssistant) WithDelegate ¶ added in v0.17.0
func (aa *AdvertiserAssistant) WithDelegate(delegate AdvertiserAssistantDelegate) *AdvertiserAssistant
WithDelegate sets the delegate object that handles advertising-assistant-related events.
type AdvertiserAssistantDelegate ¶ added in v0.17.0
type AdvertiserAssistantDelegate interface {
}
AdvertiserAssistantDelegate receives the callbacks of the Objective-C protocol MCAdvertiserAssistantDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (AdvertiserAssistantDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type AdvertiserAssistantDelegateAdvertiserAssistantDidDismissInvitationHandler ¶ added in v0.17.0
type AdvertiserAssistantDelegateAdvertiserAssistantDidDismissInvitationHandler interface {
AdvertiserAssistantDidDismissInvitation(advertiserAssistant *AdvertiserAssistant)
}
AdvertiserAssistantDelegateAdvertiserAssistantDidDismissInvitationHandler is the optional MCAdvertiserAssistantDelegate method advertiserAssistantDidDismissInvitation:. Implement it on a AdvertiserAssistantDelegate value to receive that callback; a value without it is simply never sent one.
type AdvertiserAssistantDelegateAdvertiserAssistantWillPresentInvitationHandler ¶ added in v0.17.0
type AdvertiserAssistantDelegateAdvertiserAssistantWillPresentInvitationHandler interface {
AdvertiserAssistantWillPresentInvitation(advertiserAssistant *AdvertiserAssistant)
}
AdvertiserAssistantDelegateAdvertiserAssistantWillPresentInvitationHandler is the optional MCAdvertiserAssistantDelegate method advertiserAssistantWillPresentInvitation:. Implement it on a AdvertiserAssistantDelegate value to receive that callback; a value without it is simply never sent one.
type BrowserViewController ¶ added in v0.17.0
BrowserViewController is an idiomatic wrapper over the Objective-C class MCBrowserViewController.
The MCBrowserViewController class presents nearby devices to the user and enables the user to invite nearby devices to a session. To use this class in iOS or tvOS, call methods from the underlying UIViewController class (prepareForSegue:sender: and performSegueWithIdentifier:sender: for storyboards or presentViewController:animated:completion: and dismissViewControllerAnimated:completion: for nib-based views) to present and dismiss the view controller. In macOS, use the comparable NSViewController methods presentViewControllerAsSheet: and dismissViewController: instead.
func BrowserViewControllerFromID ¶ added in v0.17.0
func BrowserViewControllerFromID(id objc.ID) *BrowserViewController
BrowserViewControllerFromID adopts an existing Objective-C object as a BrowserViewController (nil for 0), retaining it and registering a release finalizer.
func NewBrowserViewControllerWithBrowserSession ¶ added in v0.17.0
func NewBrowserViewControllerWithBrowserSession(browser *NearbyServiceBrowser, session *Session) *BrowserViewController
NewBrowserViewControllerWithBrowserSession initializes a browser view controller with the provided browser and session.
func NewBrowserViewControllerWithServiceTypeSession ¶ added in v0.17.0
func NewBrowserViewControllerWithServiceTypeSession(serviceType string, session *Session) *BrowserViewController
NewBrowserViewControllerWithServiceTypeSession initializes a browser view controller using the provided service type and session.
func (*BrowserViewController) Browser ¶ added in v0.17.0
func (bvc *BrowserViewController) Browser() *NearbyServiceBrowser
Browser returns the browser.
func (*BrowserViewController) Description ¶ added in v0.17.0
func (bvc *BrowserViewController) Description() string
Description returns the object's -description text.
func (*BrowserViewController) IsEqual ¶ added in v0.17.0
func (bvc *BrowserViewController) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*BrowserViewController) IsKind ¶ added in v0.17.0
func (bvc *BrowserViewController) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*BrowserViewController) MaximumNumberOfPeers ¶ added in v0.17.0
func (bvc *BrowserViewController) MaximumNumberOfPeers() int
MaximumNumberOfPeers returns the maximum number of peers.
func (*BrowserViewController) MinimumNumberOfPeers ¶ added in v0.17.0
func (bvc *BrowserViewController) MinimumNumberOfPeers() int
MinimumNumberOfPeers returns the minimum number of peers.
func (*BrowserViewController) Session ¶ added in v0.17.0
func (bvc *BrowserViewController) Session() *Session
Session returns the session.
func (*BrowserViewController) String ¶ added in v0.17.0
func (bvc *BrowserViewController) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*BrowserViewController) WithDelegate ¶ added in v0.17.0
func (bvc *BrowserViewController) WithDelegate(delegate BrowserViewControllerDelegate) *BrowserViewController
WithDelegate sets the delegate object that handles browser-view-controller-related events.
func (*BrowserViewController) WithMaximumNumberOfPeers ¶ added in v0.17.0
func (bvc *BrowserViewController) WithMaximumNumberOfPeers(maximumNumberOfPeers int) *BrowserViewController
WithMaximumNumberOfPeers sets the maximum number of peers allowed in a session, including the local peer.
func (*BrowserViewController) WithMinimumNumberOfPeers ¶ added in v0.17.0
func (bvc *BrowserViewController) WithMinimumNumberOfPeers(minimumNumberOfPeers int) *BrowserViewController
WithMinimumNumberOfPeers sets the minimum number of peers that need to be in a session, including the local peer.
type BrowserViewControllerDelegate ¶ added in v0.17.0
type BrowserViewControllerDelegate interface {
// BrowserViewControllerDidFinish wraps the corresponding Objective-C method.
BrowserViewControllerDidFinish(browserViewController *BrowserViewController)
// BrowserViewControllerWasCancelled wraps the corresponding Objective-C method.
BrowserViewControllerWasCancelled(browserViewController *BrowserViewController)
}
BrowserViewControllerDelegate receives the callbacks of the Objective-C protocol MCBrowserViewControllerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (BrowserViewControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type BrowserViewControllerDelegateBrowserViewControllerShouldPresentNearbyPeerWithDiscoveryInfoHandler ¶ added in v0.17.0
type BrowserViewControllerDelegateBrowserViewControllerShouldPresentNearbyPeerWithDiscoveryInfoHandler interface {
BrowserViewControllerShouldPresentNearbyPeerWithDiscoveryInfo(browserViewController *BrowserViewController, peerID *PeerID, info obj.Object) bool
}
BrowserViewControllerDelegateBrowserViewControllerShouldPresentNearbyPeerWithDiscoveryInfoHandler is the optional MCBrowserViewControllerDelegate method browserViewController:shouldPresentNearbyPeer:withDiscoveryInfo:. Implement it on a BrowserViewControllerDelegate value to receive that callback; a value without it is simply never sent one.
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int32
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type EncryptionPreference ¶ added in v0.17.0
type EncryptionPreference int64
Indicates whether a session should use encryption when communicating with nearby peers.
const ( // The session prefers to use encryption, but accepts unencrypted connections. A connection uses encryption when all the peers choose either MCEncryptionOptional or MCEncryptionRequired. If some peers choose MCEncryptionNone, then the session will not be encrypted. For this reason, if some peers running your app can be configured without encryption, you should always assume that the session is unencrypted. EncryptionOptional EncryptionPreference = 0 // The session requires encryption. EncryptionRequired EncryptionPreference = 1 // The session should not be encrypted. EncryptionNone EncryptionPreference = 2 )
func (EncryptionPreference) String ¶ added in v0.17.0
func (e EncryptionPreference) String() string
String returns the EncryptionPreference constant's name, or its numeric form when the value is not a known constant.
type ErrorCode ¶ added in v0.17.0
type ErrorCode int64
Error codes found in MCErrorDomain error domain NSError objects returned by methods in the Multipeer Connectivity framework.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type NearbyServiceAdvertiser ¶ added in v0.17.0
NearbyServiceAdvertiser is an idiomatic wrapper over the Objective-C class MCNearbyServiceAdvertiser.
The MCNearbyServiceAdvertiser class publishes an advertisement for a specific service that your app provides through the Multipeer Connectivity framework and notifies its delegate about invitations from nearby peers.
func NearbyServiceAdvertiserFromID ¶ added in v0.17.0
func NearbyServiceAdvertiserFromID(id objc.ID) *NearbyServiceAdvertiser
NearbyServiceAdvertiserFromID adopts an existing Objective-C object as a NearbyServiceAdvertiser (nil for 0), retaining it and registering a release finalizer.
func NewNearbyServiceAdvertiserWithPeerDiscoveryInfoServiceType ¶ added in v0.17.0
func NewNearbyServiceAdvertiserWithPeerDiscoveryInfoServiceType(myPeerID *PeerID, info map[string]string, serviceType string) *NearbyServiceAdvertiser
NewNearbyServiceAdvertiserWithPeerDiscoveryInfoServiceType initializes an advertiser object.
func (*NearbyServiceAdvertiser) Description ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) Description() string
Description returns the object's -description text.
func (*NearbyServiceAdvertiser) DiscoveryInfo ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) DiscoveryInfo() map[string]string
DiscoveryInfo returns the discovery info.
func (*NearbyServiceAdvertiser) IsEqual ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*NearbyServiceAdvertiser) IsKind ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*NearbyServiceAdvertiser) MyPeerID ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) MyPeerID() *PeerID
MyPeerID returns the my peer ID.
func (*NearbyServiceAdvertiser) ServiceType ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) ServiceType() string
ServiceType returns the service type.
func (*NearbyServiceAdvertiser) StartAdvertisingPeer ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) StartAdvertisingPeer()
StartAdvertisingPeer begins advertising the service provided by a local peer.
func (*NearbyServiceAdvertiser) StopAdvertisingPeer ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) StopAdvertisingPeer()
StopAdvertisingPeer stops advertising the service provided by a local peer.
func (*NearbyServiceAdvertiser) String ¶ added in v0.17.0
func (nsa *NearbyServiceAdvertiser) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type NearbyServiceAdvertiserDelegate ¶ added in v0.17.0
type NearbyServiceAdvertiserDelegate interface {
AdvertiserDidReceiveInvitationFromPeerWithContextInvitationHandler(advertiser *NearbyServiceAdvertiser, peerID *PeerID, context_ []byte, invitationHandler func(bool, obj.Object))
}
NearbyServiceAdvertiserDelegate is the Go form of the Objective-C protocol MCNearbyServiceAdvertiserDelegate.
type NearbyServiceBrowser ¶ added in v0.17.0
NearbyServiceBrowser is an idiomatic wrapper over the Objective-C class MCNearbyServiceBrowser.
Searches (by service type) for services offered by nearby devices using infrastructure Wi-Fi, peer-to-peer Wi-Fi, and Bluetooth (in iOS) or Ethernet (in macOS and tvOS), and provides the ability to easily invite those devices to a Multipeer Connectivity session (MCSession).
func NearbyServiceBrowserFromID ¶ added in v0.17.0
func NearbyServiceBrowserFromID(id objc.ID) *NearbyServiceBrowser
NearbyServiceBrowserFromID adopts an existing Objective-C object as a NearbyServiceBrowser (nil for 0), retaining it and registering a release finalizer.
func NewNearbyServiceBrowserWithPeerServiceType ¶ added in v0.17.0
func NewNearbyServiceBrowserWithPeerServiceType(myPeerID *PeerID, serviceType string) *NearbyServiceBrowser
NewNearbyServiceBrowserWithPeerServiceType initializes the nearby service browser object.
func (*NearbyServiceBrowser) Description ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) Description() string
Description returns the object's -description text.
func (*NearbyServiceBrowser) InvitePeerToSessionWithContextTimeout ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) InvitePeerToSessionWithContextTimeout(peerID *PeerID, session *Session, context_ []byte, timeout float64)
InvitePeerToSessionWithContextTimeout invites a discovered peer to join a Multipeer Connectivity session.
func (*NearbyServiceBrowser) IsEqual ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*NearbyServiceBrowser) IsKind ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*NearbyServiceBrowser) MyPeerID ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) MyPeerID() *PeerID
MyPeerID returns the my peer ID.
func (*NearbyServiceBrowser) ServiceType ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) ServiceType() string
ServiceType returns the service type.
func (*NearbyServiceBrowser) StartBrowsingForPeers ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) StartBrowsingForPeers()
StartBrowsingForPeers starts browsing for peers.
func (*NearbyServiceBrowser) StopBrowsingForPeers ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) StopBrowsingForPeers()
StopBrowsingForPeers stops browsing for peers.
func (*NearbyServiceBrowser) String ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*NearbyServiceBrowser) WithDelegate ¶ added in v0.17.0
func (nsb *NearbyServiceBrowser) WithDelegate(delegate NearbyServiceBrowserDelegate) *NearbyServiceBrowser
WithDelegate sets the delegate object that handles browser-related events.
type NearbyServiceBrowserDelegate ¶ added in v0.17.0
type NearbyServiceBrowserDelegate interface {
// BrowserFoundPeerWithDiscoveryInfo wraps the corresponding Objective-C method.
BrowserFoundPeerWithDiscoveryInfo(browser *NearbyServiceBrowser, peerID *PeerID, info obj.Object)
// BrowserLostPeer wraps the corresponding Objective-C method.
BrowserLostPeer(browser *NearbyServiceBrowser, peerID *PeerID)
}
NearbyServiceBrowserDelegate receives the callbacks of the Objective-C protocol MCNearbyServiceBrowserDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (NearbyServiceBrowserDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type NearbyServiceBrowserDelegateBrowserDidNotStartBrowsingForPeersHandler ¶ added in v0.17.0
type NearbyServiceBrowserDelegateBrowserDidNotStartBrowsingForPeersHandler interface {
BrowserDidNotStartBrowsingForPeers(browser *NearbyServiceBrowser, err error)
}
NearbyServiceBrowserDelegateBrowserDidNotStartBrowsingForPeersHandler is the optional MCNearbyServiceBrowserDelegate method browser:didNotStartBrowsingForPeers:. Implement it on a NearbyServiceBrowserDelegate value to receive that callback; a value without it is simply never sent one.
type OSUnfairLockFlags ¶ added in v0.17.0
type OSUnfairLockFlags uint32
Bitmask — values may be combined with |.
const ( OSUnfairLockFlagsNone OSUnfairLockFlags = 0 OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144 )
func (OSUnfairLockFlags) String ¶ added in v0.17.0
func (e OSUnfairLockFlags) String() string
String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.
type PeerID ¶ added in v0.17.0
PeerID is an idiomatic wrapper over the Objective-C class MCPeerID.
An MCPeerID object represents a peer in a multipeer session.
func NewPeerIDWithDisplayName ¶ added in v0.17.0
NewPeerIDWithDisplayName initializes a peer.
func PeerIDFromID ¶ added in v0.17.0
PeerIDFromID adopts an existing Objective-C object as a PeerID (nil for 0), retaining it and registering a release finalizer.
func (*PeerID) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*PeerID) DisplayName ¶ added in v0.17.0
DisplayName returns the display name.
func (*PeerID) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type Session ¶ added in v0.17.0
Session is an idiomatic wrapper over the Objective-C class MCSession.
An MCSession object enables and manages communication among all peers in a Multipeer Connectivity session.
func NewSessionWithPeer ¶ added in v0.17.0
NewSessionWithPeer creates a Multipeer Connectivity session.
func NewSessionWithPeerSecurityIdentityEncryptionPreference ¶ added in v0.17.0
func NewSessionWithPeerSecurityIdentityEncryptionPreference(myPeerID *PeerID, identity obj.Object, encryptionPreference EncryptionPreference) *Session
NewSessionWithPeerSecurityIdentityEncryptionPreference creates a Multipeer Connectivity session, providing security information.
func SessionFromID ¶ added in v0.17.0
SessionFromID adopts an existing Objective-C object as a Session (nil for 0), retaining it and registering a release finalizer.
func (*Session) CancelConnectPeer ¶ added in v0.17.0
CancelConnectPeer cancels an attempt to connect to a peer.
func (*Session) ConnectPeerWithNearbyConnectionData ¶ added in v0.17.0
ConnectPeerWithNearbyConnectionData call this method to connect a peer to the session when using your own service discovery code instead of an MCNearbyServiceBrowser or MCBrowserViewController object.
func (*Session) ConnectedPeers ¶ added in v0.17.0
ConnectedPeers returns the connected peers.
ConnectedPeers returns the collection as a Go slice.
func (*Session) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Session) Disconnect ¶ added in v0.17.0
func (s *Session) Disconnect()
Disconnect disconnects the local peer from the session.
func (*Session) EncryptionPreference ¶ added in v0.17.0
func (s *Session) EncryptionPreference() EncryptionPreference
EncryptionPreference returns the encryption preference.
func (*Session) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Session) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Session) NearbyConnectionDataForPeer ¶ added in v0.17.0
func (s *Session) NearbyConnectionDataForPeer(ctx context.Context, peerID *PeerID) (result obj.Object, err error)
NearbyConnectionDataForPeer obtains connection data for the specified peer.
NearbyConnectionDataForPeer blocks until the operation completes or ctx is cancelled.
func (*Session) SecurityIdentity ¶ added in v0.17.0
SecurityIdentity returns the security identity.
func (*Session) SendDataToPeersWithMode ¶ added in v0.17.0
func (s *Session) SendDataToPeersWithMode(data []byte, peerIDs []*PeerID, mode SessionSendDataMode) error
SendDataToPeersWithMode sends a message to nearby peers.
func (*Session) SendResourceAtURLWithNameToPeerWithCompletionHandler ¶ added in v0.18.0
func (s *Session) SendResourceAtURLWithNameToPeerWithCompletionHandler(resourceURL string, resourceName string, peerID *PeerID, completionHandler func(unsafe.Pointer)) *foundation.Progress
SendResourceAtURLWithNameToPeerWithCompletionHandler sends the contents of a URL to a peer.
func (*Session) StartStreamWithNameToPeer ¶ added in v0.17.0
func (s *Session) StartStreamWithNameToPeer(streamName string, peerID *PeerID) (result *foundation.OutputStream, err error)
StartStreamWithNameToPeer opens a byte stream to a nearby peer.
func (*Session) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Session) WithDelegate ¶ added in v0.17.0
func (s *Session) WithDelegate(delegate SessionDelegate) *Session
WithDelegate sets the delegate object that handles session-related events.
type SessionDelegate ¶ added in v0.17.0
type SessionDelegate interface {
// SessionPeerDidChangeState wraps the corresponding Objective-C method.
SessionPeerDidChangeState(session *Session, peerID *PeerID, state SessionState)
// SessionDidReceiveDataFromPeer wraps the corresponding Objective-C method.
SessionDidReceiveDataFromPeer(session *Session, data []byte, peerID *PeerID)
// SessionDidReceiveStreamWithNameFromPeer wraps the corresponding Objective-C method.
SessionDidReceiveStreamWithNameFromPeer(session *Session, stream obj.Object, streamName string, peerID *PeerID)
// SessionDidStartReceivingResourceWithNameFromPeerWithProgress wraps the corresponding Objective-C method.
SessionDidStartReceivingResourceWithNameFromPeerWithProgress(session *Session, resourceName string, peerID *PeerID, progress obj.Object)
// SessionDidFinishReceivingResourceWithNameFromPeerAtURLWithError wraps the corresponding Objective-C method.
SessionDidFinishReceivingResourceWithNameFromPeerAtURLWithError(session *Session, resourceName string, peerID *PeerID, localURL string, err error)
}
SessionDelegate receives the callbacks of the Objective-C protocol MCSessionDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (SessionDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type SessionSendDataMode ¶ added in v0.17.0
type SessionSendDataMode int64
Indicates whether delivery of data should be guaranteed.
const ( // The framework should guarantee delivery of each message, enqueueing and retransmitting data as needed, and ensuring in-order delivery. SessionSendDataReliable SessionSendDataMode = 0 // Messages to peers should be sent immediately without socket-level queueing. If a message cannot be sent immediately, it should be dropped. The order of messages is not guaranteed. SessionSendDataUnreliable SessionSendDataMode = 1 )
func (SessionSendDataMode) String ¶ added in v0.17.0
func (e SessionSendDataMode) String() string
String returns the SessionSendDataMode constant's name, or its numeric form when the value is not a known constant.
type SessionState ¶ added in v0.17.0
type SessionState int64
Indicates the current state of a given peer within a session.
const ( // The peer is not (or is no longer) in this session. SessionStateNotConnected SessionState = 0 // A connection to the peer is currently being established. SessionStateConnecting SessionState = 1 // The peer is connected to this session. SessionStateConnected SessionState = 2 )
func (SessionState) String ¶ added in v0.17.0
func (e SessionState) String() string
String returns the SessionState constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- MCAdvertiserAssistantDelegate_delegate_generated.go
- MCAdvertiserAssistant_generated.go
- MCBrowserViewControllerDelegate_delegate_generated.go
- MCBrowserViewController_generated.go
- MCNearbyServiceAdvertiser_generated.go
- MCNearbyServiceBrowserDelegate_delegate_generated.go
- MCNearbyServiceBrowser_generated.go
- MCPeerID_generated.go
- MCSessionDelegate_delegate_generated.go
- MCSession_generated.go
- doc.go
- multipeerconnectivity_constants_generated.go
- multipeerconnectivity_enums_generated.go
- multipeerconnectivity_errors_generated.go
- multipeerconnectivity_protocols_generated.go
- multipeerconnectivity_runtime_generated.go