Giter Site home page Giter Site logo

tiwareep / project-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trvslhlt/project-1

0.0 2.0 0.0 341 KB

project 1 for networked and distributed computing

License: MIT License

Makefile 0.08% Python 63.47% C 34.33% Lex 0.92% Yacc 1.02% HTML 0.14% CSS 0.05%

project-1's Introduction

################################################################################

README

Description: This file serves as a README and documentation for CP1 starter.

Authors: Athula Balachandran [email protected],

Wolf Richter [email protected]

Eugene Bagdasaryan [email protected]

################################################################################

[TOC-1] Table of Contents

    [TOC-1] Table of Contents
    [DES-2] Description of Files
    [RUN-3] How to Run

[DES-2] Description of Files

Here is a listing of all files associated with Recitation 1 and what their' purpose is:

                .../README                  - Current document 
                .../src/echo_client.c       - Simple echo network client
                .../src/echo_server.c       - Simple echo network server
                .../src/Makefile            - Contains rules for make
                .../src/cp1_checker.py      - Python test script for CP1

[RUN-3] How to Run

Building and executing the echo code should be very simple:

                cd src
                make
                ./echo_server
                ./echo_client localhost 9999

This should allow you to input characters on stdin which will be sent to the echo server. The echo server has a hard-coded serving port of 9999. Any input characters to stdin will be flushed to the server on return, and any bytes received from the server will appear on stdout.

In addition, a telnet client may also be used in a similar fashion for communicating with the server:

                cd src
                make
                ./echo_server
                telnet localhost 9999

The test Python script takes a series of arguments and can be run as:

                cd src
                make
                ./echo_server
                ./cp1_checker 127.0.0.1 9999 1000 10 2048 500

with arguments as such:

                <ip> <port> <# trials> <# writes and reads per trial> \
                <max # bytes to write at a time> <# connections> 

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.