Socket Problem with imagectn
Moderator: Moderator Team
Socket Problem with imagectn
Hi,
I'm using imagectn and movescu. It works very good until imagectn wants to
send the requested file to movescu. imagectn wants to create a new socket-connection at socket 384 and then imagectn stops.
The problem is in file dcmtrans.cxx at position
return recv(getSocket(), (char *)buf, nbyte, 0);
getSocket() still work, but then he fails.
What could that be?
greetz flo
I'm using imagectn and movescu. It works very good until imagectn wants to
send the requested file to movescu. imagectn wants to create a new socket-connection at socket 384 and then imagectn stops.
The problem is in file dcmtrans.cxx at position
return recv(getSocket(), (char *)buf, nbyte, 0);
getSocket() still work, but then he fails.
What could that be?
greetz flo
-
- Posts: 11
- Joined: Wed, 2004-11-10, 10:17
Are you running movescu on the same machine as imagectn? Then you must decide which one is allowed to listen on port 104. By default, movescu will try to use 104 for incoming assocaitions (even if the move destination is another AET!) so use the --port switch to select another value (and adapt the imagectn configuration accordingly).
Good luck,
Pim.
Good luck,
Pim.
hi,
client and server are running on different machine (server on virual machine).
I am using the --port-option.
movescu -v -P -k ... --port 10001 -aec DICOMSERVER -aem xxxxx -aet xxxxx 192.168.0.154 10001
my config file:
# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 10001
MaxPDUSize = 16384
MaxAssociations = 16
Display = "no"
HostTable BEGIN
vgstd = (xxxxx, Dell28-2, 10001)
HostTable END
AETable BEGIN
DICOMSERVER C:\COMMON R (200, 1024mb) vgstd
AETable END
I tried different different ports,too. But nothing works.
The connection is established. First I do a findscu to find files on the server ( works well ). then I want to get one file and exactly when the server wants to open an second connection for submitting, it stops.
I have no idea any more ...
client and server are running on different machine (server on virual machine).
I am using the --port-option.
movescu -v -P -k ... --port 10001 -aec DICOMSERVER -aem xxxxx -aet xxxxx 192.168.0.154 10001
my config file:
# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 10001
MaxPDUSize = 16384
MaxAssociations = 16
Display = "no"
HostTable BEGIN
vgstd = (xxxxx, Dell28-2, 10001)
HostTable END
AETable BEGIN
DICOMSERVER C:\COMMON R (200, 1024mb) vgstd
AETable END
I tried different different ports,too. But nothing works.
The connection is established. First I do a findscu to find files on the server ( works well ). then I want to get one file and exactly when the server wants to open an second connection for submitting, it stops.
I have no idea any more ...
-
- Posts: 11
- Joined: Wed, 2004-11-10, 10:17
I've never used imgctn, but this is what I read in ctnconf.txt:flo wrote: HostTable BEGIN
vgstd = (xxxxx, Dell28-2, 10001)
HostTable END
<ctnconf.txt>
1.2. Host Table (AE Title/Presentation Address Mapping)
The Host Table part must be enclosed with the keywords "HostTable
BEGIN" and "HostTable END". It is used to define symbolic names
for a number of DICOM peers. A peer is a structure with the three
values AETitle, HostName, Portnumber seperated with white spaces
and commas and enclosed with "(" and ")".
</ctnconf.txt>
Thus, it appears that the hostname of AET xxxxx is "Dell28-2".
Can you ping Dell28-2 from the CTN VM? If not, try to add a line to the HOSTS file of your system that maps this host name to the IP address where movescu lives. On Windows, HOSTS is located in C:\WINDOWS\system32\drivers\etc.
Pim.
-
- Posts: 11
- Joined: Wed, 2004-11-10, 10:17
works as well
C:\dcmtkserver3.5.3\dcmnet\apps\debug>echoscu -v Dell28-2 10001
Requesting Association
Association Accepted (Max Send PDV: 16372)
Echo [1], Complete [Status: Success]
Releasing Association
..\3.5.4 MAIN\dcmnet\apps\debug>storescp -v 10001
Association Received
Association Acknowledged (Max Send PDV: 16372)
Received C-Echo RQ: MsgID 1
AffectedSOPClassUID: =VerificationSOPClass
Data Set: Not Present
Association Release
Association Received
Association Acknowledged (Max Send PDV: 16372)
Received C-Echo RQ: MsgID 1
AffectedSOPClassUID: =VerificationSOPClass
Data Set: Not Present
Association Release
thx for your help
C:\dcmtkserver3.5.3\dcmnet\apps\debug>echoscu -v Dell28-2 10001
Requesting Association
Association Accepted (Max Send PDV: 16372)
Echo [1], Complete [Status: Success]
Releasing Association
..\3.5.4 MAIN\dcmnet\apps\debug>storescp -v 10001
Association Received
Association Acknowledged (Max Send PDV: 16372)
Received C-Echo RQ: MsgID 1
AffectedSOPClassUID: =VerificationSOPClass
Data Set: Not Present
Association Release
Association Received
Association Acknowledged (Max Send PDV: 16372)
Received C-Echo RQ: MsgID 1
AffectedSOPClassUID: =VerificationSOPClass
Data Set: Not Present
Association Release
thx for your help
-
- OFFIS DICOM Team
- Posts: 1513
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest