It is currently Thu Mar 28, 2024 6:47 am


All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: MUMPS SOCKET
PostPosted: Mon Sep 05, 2011 12:51 am 

Joined: Mon Sep 05, 2011 12:44 am
Posts: 1
Location: Zawiercie, Poland
Real Name: Marcin Kwiatkowiski
Began Programming in MUMPS: 08 Jun 2011
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.


Top
Offline Profile  
 
 Post subject: Re: MUMPS SOCKET
PostPosted: Mon Nov 07, 2011 2:38 pm 
User avatar

Joined: Sun Mar 27, 2011 8:12 am
Posts: 87
Location: Europe , HUNGARY
Real Name: Josef Nagy
Began Programming in MUMPS: 0- 0-1991
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 .

_________________
Josef Nagy
[MUMPS based industrial application in Processing Controll (MCU/PLC/MUX)]


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net