Wow what a mess you've got there, pal . Why are you naming your Thread array with the same name of you InNetwork class ??
1
| public Thread InNetwork[] = new Thread[10]; |
To answer your question I'll change the name of this array to 'threads'.
To access the variables you have to keep a reference from the instance you passed to the Thread:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| public class Server { public Thread threads[] = new Thread[10]; public static void main(String Args[]) { new Server(); } public Server() { InNetwork in = new InNetwork(); threads[0] = new Thread(in); in.iClientH = 12345; } } |
Other than that, I suggest you looking into java basics first, before writing Client/Server applications .