Madz Posted January 22, 2003 Posted January 22, 2003 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. Quote The one and only Dr. Madz eee-m@il
*Gurus* divil Posted January 22, 2003 *Gurus* Posted January 22, 2003 You will have to insert delimiters appropriately, and parse them back out at the receiving end. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Madz Posted January 27, 2003 Author Posted January 27, 2003 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 Quote The one and only Dr. Madz eee-m@il
rmatthew Posted January 29, 2003 Posted January 29, 2003 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). :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.