Function groups [src]

Prototype

pub fn groups( self: *Udp6, join_flag: JoinFlag, multicast_address: ?*const Ip6.Address, ) GroupsError!void

Parameters

self: *Udp6join_flag: JoinFlagmulticast_address: ?*const Ip6.Address

Possible Errors

AlreadyStarted
DeviceError
InvalidParameter
NotFound
NotStarted
OutOfResources
Unexpected UnexpectedError

Source

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