npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@qnext/iso-on-tcp

v0.2.0

Published

ISO-on-TCP Protocol implementation

Downloads

35

Readme

Description

⚠ This repo is a form with custom implementation of TSAP allowing string usage.

  • Original repo: https://github.com/st-one-io/iso-on-tcp

iso-on-tcp

This is a (still) partial implementation of the ISO-on-TCP protocol (RFC1006). It implements a parser and a serializer as Transform Streams that can be used individually, and a client implementation as a Duplex stream.

The code currently lacks the implementation of parts of the protocol, as it's currently focused on the parts needed for the nodeS7 project. But as long as it follows the protocol, pull requests will be happily accepted. Please check the CODE_OF_CONDUCT.md.

This library was created as part of the ST-One project.

Usage

The easiest way to create a connection is to use the createConnection() method

const client = isoontcp.createConnection({
    port: 102
    host: '192.168.0.100',
    srcTSAP: 0x0100,
    dstTSAP: 0x0100
});

It will create a bidirectional stream that will be sent and received as DATA (DT) telegrams. From there on you can use it as any other Node.JS duplex stream, that is, you can call methods like client.on('data'), client.write(buffer), and event client.pipe(anotherStream).

If you want to access the individual messages received, you can listen to the raw-message event, or even message for every complete DT telegram.

Documentation

Please check the JSDoc Documentation

References

  • Personal Notes
  • https://tools.ietf.org/html/rfc1006
  • https://tools.ietf.org/html/rfc905
  • https://wiki.wireshark.org/S7comm
  • https://github.com/boundary/wireshark/blob/master/epan/dissectors/packet-ositp.c
  • https://github.com/szpajder/dumpvdl2/blob/master/cotp.c
  • https://github.com/mushorg/conpot/blob/master/conpot/protocols/s7comm/cotp.py

Glossary

These are some abbreviations commonly found in the references that may be useful to know beforehand

  • TSAP - Transport Service Access Point
  • TPDU - Transport Protocol Data Units
  • TSDU - Transport Service Data Units
  • SPDU - Session Protocol Data Unit
  • TPKT - TPDU packet
  • COTP - Connection-Oriented Transport Protocol

License

Copyright: (c) 2018-2020, ST-One, Guilherme Francescon Cittolin [email protected]

GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)