Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
0542002d
Commit
0542002d
authored
18 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
adjusted to the new internal *_getsock() concept for providing info internally
about what sockets to wait for what action on
parent
c1e307f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hostthre.c
+11
-9
11 additions, 9 deletions
lib/hostthre.c
with
11 additions
and
9 deletions
lib/hostthre.c
+
11
−
9
View file @
0542002d
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
5
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
6
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -715,20 +715,22 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
return
CURLE_OK
;
}
CURLcode
Curl_resolv_fdset
(
struct
connectdata
*
conn
,
fd_set
*
read_fd_set
,
fd_set
*
write_fd_set
,
int
*
max_fdp
)
int
Curl_resolv_getsock
(
struct
connectdata
*
conn
,
curl_socket_t
*
socks
,
int
numsocks
)
{
const
struct
thread_data
*
td
=
(
const
struct
thread_data
*
)
conn
->
async
.
os_specific
;
if
(
td
&&
td
->
dummy_sock
!=
CURL_SOCKET_BAD
)
{
FD_SET
(
td
->
dummy_sock
,
write_fd_set
);
*
max_fdp
=
(
int
)
td
->
dummy_sock
;
if
(
numsocks
)
{
/* return one socket waiting for writable, even though this is just
a dummy */
socks
[
0
]
=
td
->
dummy_sock
;
return
GETSOCK_WRITESOCK
(
0
);
}
}
(
void
)
read_fd_set
;
return
CURLE_OK
;
return
0
;
}
#ifdef CURLRES_IPV4
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment