Coder Social home page Coder Social logo

snf's Introduction

serverSNFS.c This is the server side program. It contains the server side API s_open(),s_close(),s_read(),s_write() and s_stat() To use the server progoram, one should type: gcc -g -o serverSNFS serverSNFS.c To run any program below, you should always run serverSNFS first. The sample running command is below: ./serverSNFS --port 16892 --mount /tmp/yy291

clientSNFS.c This is the client API library, the declarations of all the API are in client_api.h the main functions are: void setServer(char* server,int portnum) int openFile(char* name); int closeFile(int fd); int readFile(int fd, void* buf); int writeFile(int fd, void* buf); int statFile(int fd, struct fileStat *buf);

To use this API library, for example, your program clientapp.c needs to use it. First run serverSNFS, second open another terminal. Also clientapp.c should include "client_api.h". The compilation should be: gcc -g -o clientapp clientapp.c clientSNFS.c

clientapp.c This is the clientapp program described in the assignment description. To run this clientapp program, one should compile it with the clientSNFS.c in a different terminal window than the serverSNFS. To compile the program, you should type: gcc -g -o clientapp clientapp.c clientSNFS.c

loadtes.c This is the program for testing the throughput of the server. The compiling process is like clientapp.c. After running the program, you will see the throughput for each client process, then you can add them together to get the total throughpu for the server. You can change the source code to measure the throughput with different number of client processes.

test.c This is the general test program for testing the clientSNFS API. To run this test program, the comopiling process is like clientapp.c

snf's People

Contributors

jamesyin96 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.