Sending Array of String to Clients

Madz

Centurion
Joined
Jan 22, 2003
Messages
155
Well my Question is that, I am developing a TCP IP application through which i want to control my client PCs on network.

My Server Software

Listens for Connections and send commands to client

Client Software

Connects to Server and if it receives a command it acts as it has been written in it's code such as if Server sends command "LOCK" it will lock the workstation.

Now i want to send an Array of strings for registry settings.
Local Policies on Client PC, but i dont know how can i handel an array. and how to send it to client.
 
You will have to insert delimiters appropriately, and parse them back out at the receiving end.
 
Dear DIVIL

I m not getting an idea how to send an array to clients and how they will respond.

I am doing this

From Server

SENDDATA (192.168.0.4,"LOCK")

and On Client

Data_RECEIVE event
select case data received

case "lock"
do some hing to lock pc
case "unlock"
unlock the pc
.....
.
.
end select

From Server if i send an array such as
dim array(35) as string
For i = 1 to array.ubound
datasend(192.168.0.4,array(i)
next

now plz explain me how client can handel it. coz on client they are listening for only one command. so what about the array
 
As stated above:

You are going to have two choices...

1.) send one command each time

or

2.) delimit them and break apart client side and process seperately.

either way ... by the time they are processed they are going to have to be broken down into 1 command instances.

What we have here is a text manipulation problem (not a network one). :)
 
Back
Top