Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
bacc5b6c
Commit
bacc5b6c
authored
18 years ago
by
Chris Broekema
Browse files
Options
Downloads
Patches
Plain Diff
BugID: 1011
Add recv and send buffer size to constructor
parent
5591ecda
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
LCS/Transport/include/Transport/TH_Socket.h
+13
-2
13 additions, 2 deletions
LCS/Transport/include/Transport/TH_Socket.h
with
13 additions
and
2 deletions
LCS/Transport/include/Transport/TH_Socket.h
+
13
−
2
View file @
bacc5b6c
...
...
@@ -49,14 +49,18 @@ public:
const
bool
sync
=
true
,
int32
protocol
=
Socket
::
TCP
,
int32
backlog
=
5
,
const
bool
openSocketNow
=
true
);
const
bool
openSocketNow
=
true
,
const
int
recvBufferSize
=
-
1
,
const
int
serdBufferSize
=
-
1
);
// Create a TH_Socket with a client socket.
TH_Socket
(
const
string
&
hostName
,
const
string
&
service
,
const
bool
sync
=
true
,
int32
protocol
=
Socket
::
TCP
,
const
bool
openSocketNow
=
true
);
const
bool
openSocketNow
=
true
,
const
int
recvBufferSize
=
-
1
,
const
int
sendBufferSize
=
-
1
);
// Create a TH_Socket based on an existing data socket.
TH_Socket
(
Socket
*
aDataSocket
);
...
...
@@ -127,6 +131,13 @@ private:
// Administration for non-blocking receiving. In the recv-call
// these fields are filled so that waitForRecv knows what to do.
int16
itsLastCmd
;
/// when set, the Socket transport holder will adjust the
/// kernel level buffer size to the value provided when the
/// socket is initialised.
int
itsRecvBufferSize
;
int
itsSendBufferSize
;
};
inline
bool
TH_Socket
::
isClonable
()
const
...
...
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