socket programming using C

timer Asked: Apr 25th, 2016

Question description

Implement client and server software programs for general posting/sharing of information/posts. There can be many client programs running, but just one server The clients and server will communicated using socket programming The client program will alternate between a) periodically requesting and displaying new content from server, and b) posting new content to server. Each post will consist of a timestamp and a string. The server program will need to alternate between a) listening to the socket for new client requests and b) starting a new thread for processing a new request - The new thread will need to act based on the nature of the client’s request: - If the client requests all new content, then the thread will simply transmit all posts that are new to that client - If the client requests to publish a new post, then the thread will get the post from the client, and then post it into some shared file/data structure. Since many threads might be doing that at the same time, there will be a need for mutual exclusion when writing to the file/data structure

Tutor Answer

(Top Tutor) Studypool Tutor
School: University of Virginia
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors