Distributed file system client and server APIs over TCP connection