Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Main
Synchronet
Commits
3fa3ad98
Commit
3fa3ad98
authored
4 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Add more detail to socket_check() comment
parent
90ca5a36
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#1886
failed
4 years ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/sockwrap.c
+7
-4
7 additions, 4 deletions
src/xpdev/sockwrap.c
with
7 additions
and
4 deletions
src/xpdev/sockwrap.c
+
7
−
4
View file @
3fa3ad98
...
...
@@ -275,16 +275,19 @@ off_t recvfilesocket(int sock, int file, off_t *offset, off_t count)
* is true or false are complex, but the intent appears to be as follows:
*
* If the remote has half-closed the socket, rd_p should be FALSE and
* the function should return FALSE.
* the function should return FALSE, unless rd_p is NULL in which case
* the function should return TRUE. wr_p will indicate that transmit
* buffers are available.
*
* If we have half-closed the socket, wr_p should be TRUE and the function
* should return TRUE.
* If we have half-closed the socket, wr_p should be TRUE, the function
* should return TRUE, and rd_p will indicate if there is data available
* to be received.
*
* If the socket is completely closed, wr_p should be TRUE, rd_p should be
* FALSE, and the function should return FALSE, unless rd_p is NULL in which
* case, the function should return TRUE.
*
* When the function is open in both directions, wr_p will indicate
wr
it
e
* When the function is open in both directions, wr_p will indicate
transm
it
* buffers are available, rd_p will indicate data is available to be recv()ed
* and the return value should be TRUE.
*
...
...
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