Function groups [src]

Joins and leaves multicast groups. To leave all groups, use leaveAllGroups instead.

Prototype

pub fn groups( self: *Ip6, join_flag: JoinFlag, group_address: *const Address, ) GroupsError!void

Parameters

self: *Ip6join_flag: JoinFlaggroup_address: *const Address

Possible Errors

AlreadyStarted
DeviceError
InvalidParameter
NotFound
NotStarted
OutOfResources
Unexpected UnexpectedError
Unsupported

Source

pub fn groups( self: *Ip6, join_flag: JoinFlag, group_address: *const Address, ) GroupsError!void { switch (self._groups( self, // set to TRUE to join the multicast group session and FALSE to leave join_flag == .join, group_address, )) { .success => {}, .invalid_parameter => return Error.InvalidParameter, .not_started => return Error.NotStarted, .out_of_resources => return Error.OutOfResources, .unsupported => return Error.Unsupported, .already_started => return Error.AlreadyStarted, .not_found => return Error.NotFound, .device_error => return Error.DeviceError, else => |status| return uefi.unexpectedStatus(status), } }