Bart Van Assche wrote:
> On Mon, Jan 19, 2009 at 4:35 PM, Hans de Goede <> wrote:
>>> - libiscsi_discover_sendtargets - maybe (very maybe) the "int port" could 
>>> be dropped and
>>>                                   "const char *address" could be of the 
>>> form "address_or_host[:port]".
>>>                                 Regarding defaults and all that.
>> Nah, that is ok for a cmdline interface, but cumbersome for an API, we could 
>> do
>> something where port == 0 would choose the default port though.
> Have you considered to replace both "const char *address" and "int
> port" by "const struct sockaddr *address, socklen_t address_len" ?
> This would avoid having to figure out inside
> libiscsi_discover_sendtargets() whether the passed address is in IPv4
> or in IPv6 format (if numeric).

libiscsi builds on top of the existing open-iscsi userspace code, in this code 
the "const char *address" and "int port" notation is used everywhere.



You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to