Using Pthread multi client to single server communication program

18 views
Skip to first unread message

ravi bhuva

unread,
Feb 13, 2013, 12:02:51 AM2/13/13
to android_...@googlegroups.com
Hello Everyone,

Here multi client communication with single server using pthread function and if any one find accurate code using select system call then share with us.

Regards,
Ravi Bhuva
client.c
server.c

ravi bhuva

unread,
Feb 13, 2013, 12:08:22 AM2/13/13
to android_...@googlegroups.com
You have to compile server code as below:
       gcc -o server server.c -lpthread

Ekata Mehul

unread,
Feb 13, 2013, 11:50:50 AM2/13/13
to android_...@googlegroups.com, Niraj Patel - Embedded
Hello All,

So as per the talk today,

1. Make the groups as per the mentors details. You will be working on the examples as
- Chat server
- Checking the CPU utilization on the server and then decision to be taken if client can make the application run on the server
- checking the hard disk utilization on server and the decision to be taken if client can store the data in server hard disk or not. Each client will have some fixed quota for the hdd in server.
- Matching the difference in clock with the server and clients. all the clocks should be in sync.
- Using client-server architecture, design and implement a multi-threaded server that returns the meaning of a word as stored in a dictionary.
- In distributed le systems, large les could be stored in the form of multiple xed-size chunks that are distributed and replicated among multiple servers. This approach aims at enabling the clients to retrieve di erent parts of a le in parallel or in an out-of-order manner. It also enables the clients to download speci c parts of the le according to their need without having to download all the
le content.
In this assignment, your goal is to develop a chunk server that handles chunk requests from clients. The server should be able to handle multiple clients concurrently. You will also develop a client to be able to test your server. The server and the client will communicate using the TCP protocol.

2. You all need to let me know the devices that you have selected for the working with i2c protocol.

3. As we have discussed, you will be then taking the same source code and then working on changing the entire code for another board i.e. panda board for example. This needs to be done after our training is officially completed.

I will keep this mail open for Niraj, if he wants to comment on the practicals assigned.

Regards

On Wed, Feb 13, 2013 at 10:32 AM, ravi bhuva <ravibh...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Android_oct_2012" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android_oct_20...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Ekata Mehul
Head, eiTRA
eInfochips Ltd
+91 9909984110 (office)
+91 98243 47721 (personal)
Reply all
Reply to author
Forward
0 new messages