Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
c3f0d438
Commit
c3f0d438
authored
Feb 17, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle error condition at connection
svn path=/trunk/net/; revision=5833
parent
2accfe55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/net/sock.c
src/net/sock.c
+8
-5
No files found.
src/net/sock.c
View file @
c3f0d438
...
...
@@ -448,11 +448,12 @@ int sock_read_line(sock_t sock, char *buff, const int len)
}
}
/* see if a connection can be written to
** return -1 for failure
** return 0 for not yet
** return 1 for ok
*/
/* see if a connection has been established
* return SOCK_TIMEOUT for timeout
* return SOCK_ERROR for failure
* return 0 for try again, interrupted
* return 1 for ok
*/
int
sock_connected
(
int
sock
,
unsigned
timeout
)
{
fd_set
wfds
;
...
...
@@ -480,7 +481,9 @@ int sock_connected (int sock, unsigned timeout)
{
if
(
val
==
0
)
return
1
;
sock_set_error
(
val
);
}
/* fall through */
case
-
1
:
if
(
sock_recoverable
(
sock_error
()))
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment