Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

potatodiet/dnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dumb Network Protocol

[Build Status] (https://travis-ci.org/matthin/dnp) [Gem Version] (http://badge.fury.io/rb/dnp) [Inch Status] (https://inch-ci.org/github/matthin/dnp/branch/master)

This is small example of the DNP (Completely useless, and very dumb) in Ruby.

Usage

require "dnp"

server_thread = Thread.new do
  server = Dnp::Listener.new(8080)
  client = server.accept
  puts client.receive
end

client = Dnp::Client.new("127.0.0.1", 8080)
client.send("Just a test!")

server_thread.join

Contributing

Requirements:

  • Ruby 2.2+ (Probably does work with 1.9.3+, but I'm not guaranteeing it)
  • Bundler ($ gem install bundler)

$ bundle install

About

Dumb Network Protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages