logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TSIpStringToAddr - TSIpStringToAddr API function

Description

str is expected to be an explicit address, not a hostname.  No hostname resolution is done. This attempts
       to  recognize  and  process  a  port value if present. It is set appropriately, or to zero if no port was
       found or it was malformed.

       It is intended to deal with the brackets that can optionally surround an IP address (usually IPv6)  which
       in turn are used to differentiate between an address and an attached port. E.g.

       [FE80:9312::192:168:1:1]:80

Name

       TSIpStringToAddr - TSIpStringToAddr API function

Notes

       This API may be changed in the future version since it is experimental.

Return Values

       It returns TS_SUCCESS on success, or TS_ERROR on failure.

Synopsis

          #include <ts/experimental.h>

       TSReturnCodeTSIpStringToAddr(constchar*str,intstr_len,sockaddr*addr)

See Also