Mumpster
http://mumpster.org/

MUMPS SOCKET
http://mumpster.org/viewtopic.php?f=14&t=1638
Page 1 of 1

Author:  gtmgtmgtm [ Mon Sep 05, 2011 12:51 am ]
Post subject:  MUMPS SOCKET

Hi everybody:)
I'm new in MUMPSTER and have few problems with my work...hope you can help me
So I have Java Socket Server, running on machine on port 6666. Next is GTM Client, who sends requests and recives answers. Request are printed on Java machine. The problem is with length of messages. It's like random, sometimes message have good length (it is an XML String), but sometimes it is truncated to 255 chars. I think the problem is on GTM side, becouse Java recive only those 255 bytes. My MUMPS code to send message are like this:

S REQ=$$PREPARE^XML() ;preparing XML String
S SOCK=$$OPEN^SOCKET() ;openning socket

U SOCK

W REQ,! ;! means end of transmission

R ANSWER

W ANSWER

I tried also W REQ,# but it didn't help. I think the problem is with flushing socket by GTM. I also tried to add WRAP, WIDTH options to OPEN command, but without any result.

Thanks for any help
M.

Author:  cais28 [ Mon Nov 07, 2011 2:38 pm ]
Post subject:  Re: MUMPS SOCKET

Hi Marcin

Im hope this is not a MUMPS problem . If Java client receive only 255char , then problem have in Java side . Im use the MUMPS IP SOCKET send 32k message , there was never a problem !
Please use the other simple MUMPS IP process for receive this XML messages , or use WireShark monitoring utility for detection problem .

Other :
Anyway Poland is very beautiful country .
We worked with two years before in "Kutno" (beside Lodz) , installed largest pork slaughterhouse of EU . All software was making in CACHE-MUMPS .

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/