LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know how many processes are connected to Datasocket Server programmatically?

 

Message Edited by Little Bird on 10-27-2005 04:57 PM

0 Kudos
Message 1 of 8
(3,726 Views)
Hey,
 
I tried searching Datasocket properties but could not find one that would tell the number of processes. connected via DS. Has anyone else been successful? 
 
Regards,
Ankita
0 Kudos
Message 2 of 8
(3,710 Views)
Is there a way to read the url's connected to the DataSocket Server programmatically?
Message 3 of 8
(3,610 Views)

Hi Ivan,

What exactly are you trying to do?  Are to trying to programmatically form a URL string, or do you have some other type of connection ID and you are trying to find the URL from the ID?

Also this post is a little old so I am not sure anyone previously on it will answer.

Brian K.
0 Kudos
Message 4 of 8
(3,588 Views)
Hi Brian,

I am sorry for not explaining the problem in more detail.
So here is the setup:
I have a dedicated computer running the DataSocket Server, and I have various other computers in the lab accessing the DS Server.
The computer with DS Server also runs a VI that at this moment only publishes information, so that other computers can read the data.

I would like for the other computers in the lab to be able to write certain data to the VI on the DS Server computer.
I can set it up manually by entering all the required IP addresses, but that setup is static and non scalable.
On the other hand, if I was able to programmatically see who is subscribing to my DS Server, I would be able to programmatically publish data to those computers.

Hopefully that explains the problem better.
Thank you in advance for you help.

Ivan R.
Message 5 of 8
(3,580 Views)

Hi Ivan,

I have a slight idea.  You could use the system exec VI to run the command "netstat" (assuming a windows OS).  This gives the ports and the foeign addresses open on the server.  I think this will give you enough of the information you need.

Can anyone in the community back me up on this idea?

Brian K.
Message 6 of 8
(3,565 Views)
Hi Brian,

Thank you for a timely reply. That does give me the needed info.

Thanks again.

Ivan R.
Message 7 of 8
(3,554 Views)
cross-linked
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 8
(3,413 Views)