Home | History | Annotate | Download | only in qemu

Lines Matching refs:str

42 int inet_listen(const char *str, char *ostr, int olen,
55 if (str[0] == ':') {
58 if (1 != sscanf(str,":%32[^,]%n",port,&pos)) {
60 __FUNCTION__, str);
63 } else if (str[0] == '[') {
65 if (2 != sscanf(str,"[%64[^]]]:%32[^,]%n",addr,port,&pos)) {
67 __FUNCTION__, str);
71 } else if (qemu_isdigit(str[0])) {
73 if (2 != sscanf(str,"%64[0-9.]:%32[^,]%n",addr,port,&pos)) {
75 __FUNCTION__, str);
81 if (2 != sscanf(str,"%64[^:]:%32[^,]%n",addr,port,&pos)) {
83 __FUNCTION__, str);
89 opts = str + pos;
178 int inet_connect(const char *str, SocketType socktype)
188 if (str[0] == '[') {
190 if (2 != sscanf(str,"[%64[^]]]:%32[^,]",addr,port)) {
192 __FUNCTION__, str);
196 } else if (qemu_isdigit(str[0])) {
198 if (2 != sscanf(str,"%64[0-9.]:%32[^,]",addr,port)) {
200 __FUNCTION__, str);
206 if (2 != sscanf(str,"%64[^:]:%32[^,]",addr,port)) {
208 __FUNCTION__, str);
214 if (strstr(str, ",ipv4")) {
218 if (strstr(str, ",ipv6")) {
265 int unix_listen(const char *str, char *ostr, int olen)
272 opts = strchr(str, ',');
274 len = opts - str;
276 snprintf(path, len+1, "%.*s", len, str);
278 path = qemu_strdup(str);