Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
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
Harbor 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
dCache
cta
Commits
e8da45b3
Commit
e8da45b3
authored
11 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Removed the unused function vdqm_SendToRTCP().
parent
d1ec1b54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
h/vdqm.h
+0
-1
0 additions, 1 deletion
h/vdqm.h
vdqm/vdqm_SendRecv.c
+0
-71
0 additions, 71 deletions
vdqm/vdqm_SendRecv.c
with
0 additions
and
72 deletions
h/vdqm.h
+
0
−
1
View file @
e8da45b3
...
...
@@ -59,7 +59,6 @@ int vdqm_CleanUp (vdqmnw_t *,int);
int
vdqm_ConnectToVDQM
(
vdqmnw_t
**
,
char
*
);
int
vdqm_CloseConn
(
vdqmnw_t
*
);
int
vdqm_ConnectToRTCP
(
int
*
,
char
*
);
int
vdqm_SendToRTCP
(
int
,
vdqmVolReq_t
*
,
vdqmDrvReq_t
*
);
int
vdqm_GetRTCPReq
(
char
*
,
vdqmVolReq_t
*
,
vdqmDrvReq_t
*
);
int
vdqm_SendRTCPAckn
(
int
,
int
*
,
int
*
,
char
*
);
int
vdqm_GetRTCPPort
(
void
);
...
...
This diff is collapsed.
Click to expand it.
vdqm/vdqm_SendRecv.c
+
0
−
71
View file @
e8da45b3
...
...
@@ -465,77 +465,6 @@ int vdqm_SendRTCPAckn(int connect_socket,
return
(
rc
);
}
int
vdqm_SendToRTCP
(
int
connect_socket
,
vdqmVolReq_t
*
VolReq
,
vdqmDrvReq_t
*
DrvReq
)
{
char
buf
[
VDQM_MSGBUFSIZ
];
char
errmsg
[
1024
];
char
*
p
;
int
len
,
msglen
,
rc
,
magic
,
reqtype
,
status
;
if
(
VolReq
==
NULL
||
DrvReq
==
NULL
)
return
(
-
1
);
p
=
buf
;
len
=
vdqm_MarshallRTCPReq
(
p
,
VolReq
,
DrvReq
,
SendTo
);
rc
=
netwrite_timeout
(
connect_socket
,
buf
,
len
,
VDQM_TIMEOUT
);
switch
(
rc
)
{
case
-
1
:
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): netwrite() %s
\n
"
,
neterror
());
serrno
=
SECOMERR
;
return
(
-
1
);
case
0
:
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): netwrite() connection dropped
\n
"
);
serrno
=
SECONNDROP
;
return
(
-
1
);
}
rc
=
netread_timeout
(
connect_socket
,
buf
,
LONGSIZE
*
3
,
VDQM_TIMEOUT
);
switch
(
rc
)
{
case
-
1
:
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): netread(HDR) %s
\n
"
,
neterror
());
serrno
=
SECOMERR
;
return
(
-
1
);
case
0
:
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): netread(HDR) connection dropped
\n
"
);
serrno
=
SECONNDROP
;
return
(
-
1
);
}
p
=
buf
;
unmarshall_LONG
(
p
,
magic
);
unmarshall_LONG
(
p
,
reqtype
);
unmarshall_LONG
(
p
,
len
);
rc
=
0
;
if
(
len
>
0
)
{
if
(
len
>
VDQM_MSGBUFSIZ
-
3
*
LONGSIZE
)
{
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP() too large errmsg buffer requested %d (%d)
\n
"
,
len
,
VDQM_MSGBUFSIZ
-
3
*
LONGSIZE
);
len
=
VDQM_MSGBUFSIZ
-
3
*
LONGSIZE
;
}
rc
=
netread_timeout
(
connect_socket
,
p
,
len
,
VDQM_TIMEOUT
);
switch
(
rc
)
{
case
-
1
:
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): netread(REQ) %s
\n
"
,
neterror
());
serrno
=
SECOMERR
;
return
(
-
1
);
case
0
:
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): netread(REQ) connection dropped
\n
"
);
serrno
=
SECONNDROP
;
return
(
-
1
);
}
/*
* Acknowledge message
*/
msglen
=
1024
;
p
=
buf
;
*
errmsg
=
'\0'
;
status
=
0
;
rc
=
vdqm_MarshallRTCPAckn
(
p
,
&
status
,
&
msglen
,
errmsg
,
ReceiveFrom
);
if
(
msglen
>
0
)
{
(
*
logfunc
)(
LOG_ERR
,
"vdqm_SendToRTCP(): rtcopyd returned %d, %s
\n
"
,
status
,
errmsg
);
}
}
return
(
rc
);
}
int
vdqm_SendVolPriority_Transfer
(
vdqmnw_t
*
nw
,
vdqmVolPriority_t
*
volpriority
)
{
...
...
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