chunk server implementation

How unix file can be put in the hash table and how to write a program in which the chunk server acts as a client and server .
Can you give me a comprehensive idea of implementation.