LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

i've used and configured source example code in CVI 5.5 in samples\tcp\server.prj to create a server client communication, but i'd like a server that accepts more client.What have i to change in server example for this?can you give me .c source code?

i've used and configured source example code in CVI 5.5 in samples\tcp\server.prj to create a server-client communication, but i'd like a server that accepts more client.What have i to change in server example for this?can you give me .c source code?i attach my server source code
0 Kudos
Message 1 of 2
(3,235 Views)
Look under your Server's TCP callback function. When you get a TCP_CONNECT
Event (when new client connects), the CVI example disconnects the client if
1 client is already connected. Change that code, so that everytime a new
client connects, you save handle for that client in some array or something.


vishi

"nessuno" wrote in message
news:5065000000080000000E760000-1042324653000@exchange.ni.com...
> i've used and configured source example code in CVI 5.5 in
> samples\tcp\server.prj to create a server client communication, but
> i'd like a server that accepts more client.What have i to change in
> server example for this?can you give me .c source code?
>
> i've used and configured source example code in CVI 5.5 in
> samples\tcp\server.prj to create
a server-client communication, but
> i'd like a server that accepts more client.What have i to change in
> server example for this?can you give me .c source code?i attach my
> server source code
0 Kudos
Message 2 of 2
(3,235 Views)