pub fn bind(address: *const IpAddress, io: Io, options: BindOptions) BindError!Socket address: *const IpAddressio: Iooptions: BindOptions305
306
307 pub fn bind(address: *const IpAddress, io: Io, options: BindOptions) BindError!Socket {
return io.vtable.netBindIp(io.userdata, address, options);
}
Associates an address with a
Socketwhich can be used to receive UDP packets and other kinds of non-streaming messages. Seelistenfor a streaming alternative.One bound
Socketcan be used to receive messages from multiple different addresses.