Welcome to the Linux Foundation Forum!

How can i create thread and communicate thread with agent(daemon process) with TCP/IP?



My professor assign me a task,please help me how can i do it in c programming?I m studying a subject "system programming". I am using Ubuntu/Linux.


Assign a big task to the controller and controller give task to the different threads or processes and every process connect with agent through TCP/IP. Agents are daemon processes and agents on the other machine,suppose 3 process and 3 agents connect with 3 process and every agent calculate the result and give it back to the every process and result store to the controller.Following diagram is: my professor draw this diagram on board.please help me how can i do it:


I have one laptop,please provide me a link which may help out.It's my first post here.Thanks in advance


Upcoming Training