Code Monkey home page Code Monkey logo

isa-project's Introduction

Project: ISA - SMTP client

Authors: Albert Uchytil (xuchyt03)

Description

School project for Network Applications and Network Administration. Simple SMTP client. The connection to the server is not encrypted.

Implementation details

SMTP client application written using C++. This implementation uses OOP approach. Application consist of six classes.

Envelope and Message are used as data models. ArgParser focuses on argument parsing and validation. It fills the data models. After filling the models with valid data, the Client class instance is created. All communication with the SMTP server happens within the Client.

Usage

$ ./smtpclient [ -a IP ] [ -p port] [ -i file ] [ -w seconds ]

Options

  • -a IP
    • Address of the SMTP server
    • Optional
    • Default value is 127.0.0.1
  • -p port
    • Port on which the SMTP server is running
    • Optional
    • Default value is 25
  • -i file
    • Path to client's configuration file, that contains E-Mails
    • Required
  • -w seconds
    • Number of seconds to delay the closing of the connection with the server
    • Must be number from 0 to 3600
    • Optional
    • Default value is 0

Examples

$ ./smtpclient -i test/file01.txt
$ ./smtpclient -a 192.168.2.145 -p 1337 -i test/file02.txt
$ ./smtpclient -i test/file03.txt -w 60

Notes

  • Uses isa.local as hard-coded hostname, because it is the hostname of the testing server
  • Uses [email protected] as a sender
  • client.hpp contains DEBUG macro which enables logging if set to 1

Make options

  • make
    • Builds the project
  • make clean
    • Removes compiled files
  • make pack
    • Creates archive containing source files
  • make run
    • Runs project

Files required for submission

  • src/args.cpp
  • src/args.hpp
  • src/client.cpp
  • src/client.hpp
  • src/env.cpp
  • src/env.hpp
  • src/main.cpp
  • src/msg.cpp
  • src/msg.hpp
  • src/signal.cpp
  • src/signal.hpp
  • src/status.cpp
  • src/status.hpp
  • test/file01.txt
  • test/file02.txt
  • test/file03.txt
  • Makefile
  • README

isa-project's People

Contributors

auchytil 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.