Giter Site home page Giter Site logo

imp's Introduction

Arpanet IMP implemented in C

This is part of the effort to add simulated IMP interfaces in SIMH.

See BBN Report 1822 for the protocol used to communicate with the IMP.

API

First reset the IMP:

  • t_stat imp_reset (IMP *imp)

Then set imp.receive_bit to a callback which is used to receive data from the network. The callback will receive a boolean bit, and another boolean to say whether the bit was the last in a message. The callback has this type:

  • t_stat (*) (int bit, int last)

The IMP accepts data from a host using one of these two APIs:

  • t_stat imp_send_bits (IMP *imp, uint64 data, int n, int last)
  • t_stat imp_send_packet (IMP *imp, void *octets, int n)

The first function accepts input in the lower n bits of data. Message bits accumulate until last is true.

The second function can be used to send a complete packet with n bits.

imp's People

Contributors

larsbrinkhoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

imp's Issues

Related work

  • Install Networking Unix V6
  • Add IMP-11A device to SIMH.
  • Add support for old 32-bit 1822 leaders.

TIP mode

There should be a mode that accepts TIP commands.

E.g. like in ICCC 1972 "Scenarious for Using the ARPANET"

@r
@e r
@L 70
MIT PROJECT MAC DMCG PDP-10

Missing cplusplus directive in sim_imp.h?

Hi,

I was just skimming the code and I'm actually not a C programmer, so it is very likely that I'm wrong, but isn't the __cplusplus closing directive missing in sim_imp.h?

I mean, it is present in sim_ncp.h:

imp/src/sim_ncp.h

Lines 21 to 23 in 08fc822

#ifdef __cplusplus
}
#endif

Could it have been forgotten or is it just uneccessary? I'm curious ๐Ÿ˜„

Thanks.

-Sebastian

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.