Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

The one and only

Dr. Madz

eee-m@il

Posted

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

The one and only

Dr. Madz

eee-m@il

Posted

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). :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...