Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple support for server and client in AIX #266

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion code/pymqi/CMQC.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
from struct import calcsize


Expand Down Expand Up @@ -492,7 +493,14 @@ def py23long(x):
MQFB_SYSTEM_LAST = 65535
MQFB_APPL_FIRST = 65536
MQFB_APPL_LAST = 999999999
MQENC_NATIVE = 0x00000222

if platform.system() in ['AIX']:
MQENC_NATIVE = 0x00000111
elif platform.system() in ['Windows', 'Linux']:
MQENC_NATIVE = 0x00000222
else:
MQENC_NATIVE = 0x00000311

MQENC_INTEGER_MASK = 0x0000000F
MQENC_DECIMAL_MASK = 0x000000F0
MQENC_FLOAT_MASK = 0x00000F00
Expand Down