Coder Social home page Coder Social logo

lachlanstephen / minitalk_42 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

My minitalk project for the 42 Cursus. A small client server communication program using UNIX signals. 115/100

Makefile 8.15% C 91.85%
c minitalk minitalk-42 minitalk42 42 42born2code 42cursus 42projects 42school makefile

minitalk_42's Introduction

minitalk

Mark: 115/100

minitalk, a project in ring 2 of the 42 Cursus, is one of the introductory projects for the bigger UNIX projects later in the cursus. Students had the choice between minitalk and pipex. The purpose of minitalk is to code a small data exchange program using UNIX signals, by means of a client server communication program.

Running the program

To compile and run the program, run the following commands:

# Make using the Makefile

make	# Creates the server and client executables

# Run the server executable

./server	# Prints PID of the server, and keeps program running

# In a separate terminal, run the client executable, using the following arguments

./client <server_pid> <string_to_send>

# e.g. ./client 3855 "Hello, world!"

Note: The bonus marks came from unicode character support (emojis). Feel free to replace the <string_to_send> with whichever characters you'd like to test.

Plan for repository

  • Complete remaining bonus - Server acknowledgement of message
  • Re-evaluate project with bonuses

Personal Note

I personally really enjoyed this project. The UNIX signals we were allowed to use only could communicate a 1 or 0, so the idea of breaking down strings and characters into their bit form to capitalise on the limiations of the signals to send to a separate terminal window was very interesting. Getting to use bitwise comparisons and operators to make this happen, which is slightly closer to some maths than other tasks, was also good fun.

minitalk_42's People

Contributors

lachlanstephen avatar

Stargazers

 avatar

Watchers

 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.