Project

knoc-knoc

0.0
No commit activity in last 3 years
No release in over 3 years
A library to tell you who is there.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.3.7
 Project Readme

knoc-knoc, a gem to tell you who is there

KnocKnoc will scan your network and tell you who is on it. It will tell you when someone new arrives and when someone leaves

##About KnocKnoc

KnocKnoc has two modes live and monitor.

Monitor mode scans your network in the background. if you ask KnocKnoc whos there in monitor mode, it will only tell you about who it knows about right then.

Live mode only scans when you ask about the network. when in live mode you are guaranteed a fill list of people on your network, however you will have to wait for it.

###Switching Modes

  • KnocKnoc::mode = KnocKnoc::WatchmanMonitor
  • KnocKnoc::mode = KnocKnoc::WatchmanLive

##Using KnocKnoc

To use KnocKnoc you ask it who is there

require 'knoc-knoc'

  • KnocKnoc::whos_there => [list of people on your network]
  • KnocKnoc::whos_new => [list of the new people on your network]
  • KnocKnoc::whos_left => [list of the people that have left your network]