For making a client server set up, you need to know how a child process create by parent process. A parent process makes a child process by using fork() system call.
Fork (system call):-
fork is an operation whereby a process creates a copy of itself. It is usually a system call, implemented in the kernal. Fork is the primary (and historically, only) method of process creation on Unix-like operating systems.fork() creates a new process by duplicating the calling process. The new process, referred to as the child, is an exact duplicate of the calling process, referred to as the parent. Fork() system call makes a child process and return child’s pid(pid means unique process id).
Now next you have to make pipe between the client and server for communication between them.