Giter Club home page Giter Club logo

simple-linux-kernel-tcp-client-server's Introduction

simple-linux-kernel-tcp-client-server

A simple in-kernel tcp client and server implemented as LKMs (linux kernel version 4.1.3)

This is an attempt to build a tcp server, entirely in kernel space, that supports mulitple tcp clients. The tcp client is also entirely in kernel space.

The client and server are built as loadable kernel modules.

To try this out:

  1. clone this repo to server machine.
  2. open network_server.c
    • change the port number of your server.
    • sorry, this will soon be changed to module parameter.
  3. make
  4. sudo insmod network_server.ko
  5. keep observing dmesg out.
  6. clone this repo to client machine.
  7. before inserting the client, open network_client.c
    • change the ip and port number to that of your server.
    • again, this too will soon be changed to module parameters.
  8. make
  9. sudo insmod network_client.ko

Status:

Work almost done.

simple-linux-kernel-tcp-client-server's People

Contributors

abysamross avatar

Watchers

James Cloos 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.