Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
f6072057
Commit
f6072057
authored
Aug 24, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Webspheare mq fix
parent
44ee4063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
remote/exe/rs_remote_wmq/src/rs_remote_wmq.c
remote/exe/rs_remote_wmq/src/rs_remote_wmq.c
+9
-3
No files found.
remote/exe/rs_remote_wmq/src/rs_remote_wmq.c
View file @
f6072057
...
...
@@ -228,7 +228,7 @@ unsigned int wmq_receive()
remtrans
=
rn
.
remtrans
;
while
(
remtrans
&&
search_remtrans
)
{
if
((
strncmp
(
remtrans
->
objp
->
TransName
,
(
char
*
)
MsgDesc
.
MsgId
,
MQ_MSG
_ID_LENGTH
)
==
0
)
&&
if
((
strncmp
(
remtrans
->
objp
->
TransName
,
(
char
*
)
MsgDesc
.
CorrelId
,
MQ_CORREL
_ID_LENGTH
)
==
0
)
&&
(
remtrans
->
objp
->
Direction
==
REMTRANS_IN
))
{
search_remtrans
=
false
;
sts
=
RemTrans_Receive
(
remtrans
,
(
char
*
)
&
Buffer
,
DataLength
);
...
...
@@ -287,14 +287,20 @@ unsigned int wmq_send(remnode_item *remnode,
// pmo.Options |= MQPMO_NEW_MSG_ID;
// pmo.Options |= MQPMO_NEW_CORREL_ID;
strncpy
((
char
*
)
md
.
MsgId
,
remtrans
->
TransName
,
MQ_MSG
_ID_LENGTH
)
;
memcpy
(
md
.
CorrelId
,
MQCI_NONE
,
sizeof
(
md
.
Correl
Id
));
strncpy
((
char
*
)
md
.
CorrelId
,
remtrans
->
TransName
,
MQ_CORREL
_ID_LENGTH
)
;
memcpy
(
md
.
MsgId
,
MQCI_NONE
,
sizeof
(
md
.
Msg
Id
));
if
((
remtrans
->
Address
[
0
]
<=
MQPER_PERSISTENCE_AS_Q_DEF
)
&&
(
remtrans
->
Address
[
0
]
>=
MQPER_NOT_PERSISTENT
))
md
.
Persistence
=
remtrans
->
Address
[
0
];
else
md
.
Persistence
=
MQPER_NOT_PERSISTENT
;
// | MQPRE_NOT_PERSISTENT
if
(
remtrans
->
Address
[
1
]
>
0
)
{
md
.
Expiry
=
remtrans
->
Address
[
1
]
*
10
.
0
;
// s to 1/10 s
}
else
{
md
.
Expiry
=
MQEI_UNLIMITED
;
}
messlen
=
buf_size
;
...
...
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