Socet programming - Plz help me
I am new to Linux and network programming.So please bare if I am asking some thing silly and plz guide me in this problem.
I am have written one client server program.In client side I am writing some data into scoket.But in server I am not able to read the data.But socket is in connected state(This i have verified by printing the peer name using getpeername()).
My server is getting blocked in read call(). Is the read is a blocking call?.But if I use fflush after write() in my client side program the server is not blocking but reading zero bytes.
Plz tell me some solution to make the communiation proper in my socket.