Skip to content

Commit

Permalink
UPnP MediaServer, ContentDirectory, ConnectionManager.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/UPnP-ConnectionManager/dev/": change = 4065]
  • Loading branch information
drbrain committed Jul 15, 2008
0 parents commit 3457f7c
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 0 deletions.
6 changes: 6 additions & 0 deletions History.txt
@@ -0,0 +1,6 @@
=== 1.0.0 / 2008-07-13

* 1 major enhancement

* Birthday!

5 changes: 5 additions & 0 deletions Manifest.txt
@@ -0,0 +1,5 @@
History.txt
Manifest.txt
README.txt
Rakefile
lib/UPnP/service/connection_manager.rb
48 changes: 48 additions & 0 deletions README.txt
@@ -0,0 +1,48 @@
= UPnP-ConnectionManager

* FIX (url)

== DESCRIPTION:

FIX (describe your package)

== FEATURES/PROBLEMS:

* FIX (list of features or problems)

== SYNOPSIS:

FIX (code sample of usage)

== REQUIREMENTS:

* FIX (list of requirements)

== INSTALL:

* FIX (sudo gem install, anything else)

== LICENSE:

(The MIT License)

Copyright (c) 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 changes: 14 additions & 0 deletions Rakefile
@@ -0,0 +1,14 @@
# -*- ruby -*-

require 'rubygems'
require 'hoe'
require './lib/UPnP/service/connection_manager'

Hoe.new 'UPnP-ConnectionManager', UPnP::Service::ConnectionManager::VERSION do |p|
p.rubyforge_name = 'UPnP-ConnectionManager'
p.developer 'Eric Hodel', 'drbrain@segment7.net'

p.extra_deps << ['UPnP', '>= 1.1.0']
end

# vim: syntax=Ruby
53 changes: 53 additions & 0 deletions lib/UPnP/service/connection_manager.rb
@@ -0,0 +1,53 @@
require 'rubygems'
require 'UPnP/service'

class UPnP::Service::ConnectionManager < UPnP::Service

VERSION = '1.0'

add_action 'GetProtocolInfo',
[OUT, 'Source', 'SourceProtocolInfo'],
[OUT, 'Sink', 'SinkProtocolInfo']

add_action 'PrepareForConnection',
[IN, 'RemoteProtocolInfo', 'A_ARG_TYPE_ProtocolInfo'],
[IN, 'PeerConnectionManager', 'A_ARG_TYPE_ConnectionManager'],
[IN, 'PeerConnectionID', 'A_ARG_TYPE_ConnectionID'],
[IN, 'Direction', 'A_ARG_TYPE_Direction'],

[OUT, 'ConnectionID', 'A_ARG_TYPE_ConnectionID'],
[OUT, 'AVTransportID', 'A_ARG_TYPE_AVTransportID'],
[OUT, 'RcsID', 'A_ARG_TYPE_RcsID']

add_action 'ConnectionComplete',
[IN, 'ConnectionID', 'A_ARG_TYPE_ConnectionID']

add_action 'GetCurrentConnectionIDs',
[OUT, 'ConnectionIDs', 'CurrentConnectionIDs']

add_action 'GetCurrentConnectionInfo',
[IN, 'ConnectionID', 'A_ARG_TYPE_ConnectionID'],

[OUT, 'RcsID', 'A_ARG_TYPE_RcsID'],
[OUT, 'AVTransportID', 'A_ARG_TYPE_AVTransportID'],
[OUT, 'ProtocolInfo', 'A_ARG_TYPE_ProtocolInfo'],
[OUT, 'PeerConnectionManager', 'A_ARG_TYPE_ConnectionManager'],
[OUT, 'PeerConnectionID', 'A_ARG_TYPE_ConnectionID'],
[OUT, 'Direction', 'A_ARG_TYPE_Direction'],
[OUT, 'Status', 'A_ARG_TYPE_ConnectionStatus']

add_variable 'SourceProtocolInfo', 'string', nil, nil, true
add_variable 'SinkProtocolInfo', 'string', nil, nil, true
add_variable 'CurrentConnectionIDs', 'string', nil, nil, true
add_variable 'A_ARG_TYPE_ConnectionStatus', 'string',
%w[OK ContentFormatMismatch InsufficientBandwidth
UnreliableChannel Unknown]
add_variable 'A_ARG_TYPE_ConnectionManager', 'string'
add_variable 'A_ARG_TYPE_Direction', 'string', %w[Output Input]
add_variable 'A_ARG_TYPE_ProtocolInfo', 'string'
add_variable 'A_ARG_TYPE_ConnectionID', 'i4'
add_variable 'A_ARG_TYPE_AVTransportID', 'i4'
add_variable 'A_ARG_TYPE_RcsID', 'i4'

end

0 comments on commit 3457f7c

Please sign in to comment.