Created UDP and TCP sockets and initiated data transfer using C programming language. Updated the database with book titles, queried by the user and acquired the description of the Respective books ...
You're using blocking sockets, so read will not terminate until the connection is closed from the other end, or until 128 octets are read. I suppose the other side is sending data less than 128 octets ...