Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am working on a client server TCP application where messages are exchanged between the two but the functionality is reversed, i.e. the server sends the connect request and the client listens on a port. Now on the server form, i have a datagridview where a list of client hostnames are stored and using a thread i want to connect to all the clients.
I am using
C#
Thread[] array1 = new Thread[4];
                    for (int j = 0; j < 4; j++)
                    {
                        // Start the thread with a ParameterizedThreadStart.
                        ParameterizedThreadStart start = new ParameterizedThreadStart(Start);
                        array[j] = new Thread(start);
                        array[j].Start(j);
                    }


Can anyone help me out with this and let me know if iam doing fine or with some links or some code snippets ?
Posted
Updated 25-May-14 1:08am
v2
Comments
agent_kruger 25-May-14 7:04am    
sir, to get started you must get basic knowledge of "TCP file transfer".
sovit agarwal 25-May-14 7:06am    
I have complete knowledge about TCP file transfer
What i lack is the knowledge about Threading
sovit agarwal 25-May-14 7:10am    
and when did i say i am doing it on intranet ??
I am transferring the files over internet itself...
And i will be pleased if u may help me out with threading :)
agent_kruger 25-May-14 7:11am    
sir, what would you like to know about threading? and can you give me your email id?
sovit agarwal 25-May-14 7:14am    
I want to serve multiple clients at the same time listed in my datagridview and transfer different files to each of them using those threads. The same threads will be used to access a location on the client machine as well
P.S. Please dont call me Sir

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900