Kevent

public struct Kevent

Darwin only. Kevent represents a kqueue event to register or receive from Kqueue.poll. See kqueue(2).

  • The identifier of the event. Typically a file descriptor, but can be other things (e.g. signal number).

    Declaration

    Swift

    public let identifier: Int
  • The filter associated with the identifier.

    Declaration

    Swift

    public let filter: Filter
  • The flags for the event.

    Declaration

    Swift

    public let flags: Flags
  • The filter-specific flags.

    Declaration

    Swift

    public let filterFlags: FilterFlags
  • Filter-specific data associated with the event.

    Declaration

    Swift

    public let data: Int
  • User-data associated with the event.

    Declaration

    Swift

    public let userData: UserData
  • Darwin only. Flags to configure a kqueue event.

    See more

    Declaration

    Swift

    public struct Flags: OptionSet
  • Darwin only. Filter-specific flags.

    See more

    Declaration

    Swift

    public struct FilterFlags: OptionSet
  • Darwin only. Filter to apply to a kqueue event.

    See more

    Declaration

    Swift

    public enum Filter