Browse files

Makefile: ported to new /lib filenames

	modified:   Makefile
	modified:   man/neoip-detect.1
	modified:   man/neoip-url-static.1
	modified:   man/neoip-url-stream.1
  • Loading branch information...
1 parent 9d01ce7 commit f0954a47c989be787afea327bfbbd4e272833ae2 @jeromeetienne committed Aug 13, 2010
Showing with 18 additions and 222 deletions.
  1. +3 −3 Makefile
  2. +13 −4 man/neoip-detect.1
  3. +2 −2 man/neoip-url-static.1
  4. +0 −176 man/neoip-url-stream.1
  5. +0 −37 test.js
View
6 Makefile
@@ -14,9 +14,9 @@ DST_DIR_MAN=$(DESTDIR)/usr/share/man
# misc #
#################################################################################
doc:
- pod2man --section=1 --release=$(VERSION) lib/oload_url_builder.js > man/neoip-url-static.1
- pod2man --section=1 --release=$(VERSION) lib/casto_url_builder.js > man/neoip-url-stream.1
- pod2man --section=1 --release=$(VERSION) lib/neoip_app_detect.js > man/neoip-detect.1
+ pod2man --section=1 --release=$(VERSION) lib/url_builder_oload_exe.js > man/neoip-url-static.1
+ pod2man --section=1 --release=$(VERSION) lib/url_builder_casto_exe.js > man/neoip-url-stream.1
+ pod2man --section=1 --release=$(VERSION) lib/neoip_app_detect_exe.js > man/neoip-detect.1
#################################################################################
View
17 man/neoip-detect.1
@@ -123,8 +123,8 @@
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
-.IX Title "NEOIP_APP_DETECT.JS 1"
-.TH NEOIP_APP_DETECT.JS 1 "2010-08-05" "0.6.0" "User Contributed Perl Documentation"
+.IX Title "NEOIP_APP_DETECT_EXE.JS 1"
+.TH NEOIP_APP_DETECT_EXE.JS 1 "2010-08-13" "0.6.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -165,8 +165,17 @@ mainly for its statuscode returned by the executable.
.SH "OPTIONS"
.IX Header "OPTIONS"
The following options are available:
-.IP "\fB\-v\fR" 4
-.IX Item "-v"
+.IP "\fB\-\-c|\-\-continue\fR" 4
+.IX Item "--c|--continue"
+It will continue looping for ever.
+By default, it does only one iteration.
+.IP "\fB\-\-d|\-\-delay sec\fR" 4
+.IX Item "--d|--delay sec"
+It will set the delay between each loop iteration.
+This option is valid only with \fB\-\-continue\fR.
+By default, it is 1\-sec. Fractional seconds is supported.
+.IP "\fB\-v|\-\-verbose\fR" 4
+.IX Item "-v|--verbose"
Increase the verbose level. It may be used multiple times.
.SH "EXAMPLES"
.IX Header "EXAMPLES"
View
4 man/neoip-url-static.1
@@ -123,8 +123,8 @@
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
-.IX Title "OLOAD_URL_BUILDER.JS 1"
-.TH OLOAD_URL_BUILDER.JS 1 "2010-08-05" "0.6.0" "User Contributed Perl Documentation"
+.IX Title "URL_BUILDER_OLOAD_EXE.JS 1"
+.TH URL_BUILDER_OLOAD_EXE.JS 1 "2010-08-13" "0.6.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
View
176 man/neoip-url-stream.1
@@ -1,176 +0,0 @@
-.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07)
-.\"
-.\" Standard preamble:
-.\" ========================================================================
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Vb \" Begin verbatim text
-.ft CW
-.nf
-.ne \\$1
-..
-.de Ve \" End verbatim text
-.ft R
-.fi
-..
-.\" Set up some character translations and predefined strings. \*(-- will
-.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote. \*(C+ will
-.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
-.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
-.\" nothing in troff, for use with C<>.
-.tr \(*W-
-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
-.ie n \{\
-. ds -- \(*W-
-. ds PI pi
-. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
-. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
-. ds L" ""
-. ds R" ""
-. ds C` ""
-. ds C' ""
-'br\}
-.el\{\
-. ds -- \|\(em\|
-. ds PI \(*p
-. ds L" ``
-. ds R" ''
-'br\}
-.\"
-.\" Escape single quotes in literal strings from groff's Unicode transform.
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
-.\" entries marked with X<> in POD. Of course, you'll have to process the
-.\" output yourself in some meaningful fashion.
-.ie \nF \{\
-. de IX
-. tm Index:\\$1\t\\n%\t"\\$2"
-..
-. nr % 0
-. rr F
-.\}
-.el \{\
-. de IX
-..
-.\}
-.\"
-.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
-.\" Fear. Run. Save yourself. No user-serviceable parts.
-. \" fudge factors for nroff and troff
-.if n \{\
-. ds #H 0
-. ds #V .8m
-. ds #F .3m
-. ds #[ \f1
-. ds #] \fP
-.\}
-.if t \{\
-. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
-. ds #V .6m
-. ds #F 0
-. ds #[ \&
-. ds #] \&
-.\}
-. \" simple accents for nroff and troff
-.if n \{\
-. ds ' \&
-. ds ` \&
-. ds ^ \&
-. ds , \&
-. ds ~ ~
-. ds /
-.\}
-.if t \{\
-. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
-. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
-. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
-. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
-. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
-. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
-.\}
-. \" troff and (daisy-wheel) nroff accents
-.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
-.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
-.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
-.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
-.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
-.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
-.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
-.ds ae a\h'-(\w'a'u*4/10)'e
-.ds Ae A\h'-(\w'A'u*4/10)'E
-. \" corrections for vroff
-.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
-.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
-. \" for low resolution devices (crt and lpr)
-.if \n(.H>23 .if \n(.V>19 \
-\{\
-. ds : e
-. ds 8 ss
-. ds o a
-. ds d- d\h'-1'\(ga
-. ds D- D\h'-1'\(hy
-. ds th \o'bp'
-. ds Th \o'LP'
-. ds ae ae
-. ds Ae AE
-.\}
-.rm #[ #] #H #V #F C
-.\" ========================================================================
-.\"
-.IX Title "CASTO_URL_BUILDER.JS 1"
-.TH CASTO_URL_BUILDER.JS 1 "2010-08-05" "0.6.0" "User Contributed Perl Documentation"
-.\" For nroff, turn off justification. Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.if n .ad l
-.nh
-.SH "NAME"
-neoip\-url\-stream \- build a url for neoip\-casto
-.SH "SYNOPSIS"
-.IX Header "SYNOPSIS"
-\&\fBneoip-url-stream\fR [\-s mdata_srv_uri] base_url cast_privhash cast_name
-.SH "DESCRIPTION"
-.IX Header "DESCRIPTION"
-Build an url for neoip-casto. This url will point on a normal http stream.
-Thus the client may be any client which understand http, it doesnt have to modified
-to use this url.
-.IP "\fIbase_url\fR" 4
-.IX Item "base_url"
-The base_url is the neoip-casto base url. It is not autodetected.
-\&\s-1TODO\s0 make it autodetectable (likely with a neoip-appdetect applications
-or by simply make a dependancy in the code)
-.IP "\fIcast_privhash\fR" 4
-.IX Item "cast_privhash"
-This is the hash of the broadcast password (aka casti_privtext). This is used
-to ensure the http client got the permission to read the broadcast.
-.IP "\fIcast_name\fR" 4
-.IX Item "cast_name"
-cast_name is the name of the broadcast. This name is unique inside the \fImdata_srv_uri\fR.
-.SH "OPTIONS"
-.IX Header "OPTIONS"
-The following options are available:
-.IP "\fB\-s|\-\-mdata_srv_uri\fR \fIurl\fR" 4
-.IX Item "-s|--mdata_srv_uri url"
-Use to set the url for the metadata server. This server got the metadata information
-about the broadcast. (\s-1OPTIONAL\s0)
-.SH "EXAMPLES"
-.IX Header "EXAMPLES"
-.IP "\fBbasic usage\fR" 4
-.IX Item "basic usage"
-$ neoip-url-stream http://localhost:4560 a761ce3a superstream
-.Sp
-This will display the following in stdout
-.Sp
-http://localhost:4560/a761ce3a/superstream
-.IP "\fBspecifying mdata_srv_uri\fR" 4
-.IX Item "specifying mdata_srv_uri"
-$ neoip-url-stream \-s http://example.com http://localhost:4560 a761ce3a superstream
-.Sp
-This will display the following in stdout
-.Sp
-http://localhost:4560/a761ce3a/superstream?mdata_srv_uri=http%3A//example.com
View
37 test.js
@@ -1,37 +0,0 @@
-var neoip = require('./neoip/neoip');
-var sys = require('sys');
-
-var probe_one = function(app_suffix, completed_cb){
- // if completed_cb is not specified, use a dummy one
- if(!completed_cb) completed_cb = function(){}
- neoip.discover_app(app_suffix, function(root_url, version){
- sys.puts(app_suffix+"-"+version+" found at "+root_url);
- completed_cb();
- }, function(reason){
- sys.puts(app_suffix+" not found");
- completed_cb();
- })
-}
-
-if(false){
- probe_one("oload", function(){
- probe_one('casto', function(){
- probe_one('casti', function(){
- sys.log(sys.inspect(neoip.disc_app_cache));
- })
- });
- })
-}
-if( false ){
- probe_one("oload", function(){
- probe_one('oload', function(){
- sys.log(sys.inspect(neoip.disc_app_cache));
- });
- })
-}
-if(true){
- neoip.discover_webpack(function(status){
- sys.puts("status="+status);
- //sys.log(sys.inspect(neoip.disc_app_cache));
- })
-}

0 comments on commit f0954a4

Please sign in to comment.