Module: EventMachine::RTMP
- Defined in:
- lib/em-rtmp/rtmp.rb,
lib/em-rtmp/uuid.rb,
lib/em-rtmp/buffer.rb,
lib/em-rtmp/header.rb,
lib/em-rtmp/logger.rb,
lib/em-rtmp/message.rb,
lib/em-rtmp/request.rb,
lib/em-rtmp/version.rb,
lib/em-rtmp/response.rb,
lib/em-rtmp/handshake.rb,
lib/em-rtmp/heartbeat.rb,
lib/em-rtmp/connection.rb,
lib/em-rtmp/io_helpers.rb,
lib/em-rtmp/connect_request.rb,
lib/em-rtmp/pending_request.rb,
lib/em-rtmp/response_router.rb,
lib/em-rtmp/connection_delegate.rb
Defined Under Namespace
Modules: IOHelpers Classes: Buffer, ConnectRequest, Connection, ConnectionDelegate, Handshake, HandshakeError, Header, HeaderError, Heartbeat, Logger, Message, MessageError, PendingRequest, RTMPError, Request, Response, ResponseRouter, SecureConnection, UUID
Constant Summary collapse
- VERSION =
"0.0.6"
Class Method Summary collapse
-
.connect(server, port = 1935) ⇒ Object
Create and establish a connection.
-
.ssl_connect(server, port = 443) ⇒ Object
Create and establish a secure (SSL) connection.
Class Method Details
.connect(server, port = 1935) ⇒ Object
Create and establish a connection
server - String, address of server port - Integer, port of server
Returns an EventMachine::RTMP::Connection object
15 16 17 |
# File 'lib/em-rtmp/rtmp.rb', line 15 def self.connect(server, port=1935) EventMachine.connect server, port, EventMachine::RTMP::Connection end |
.ssl_connect(server, port = 443) ⇒ Object
Create and establish a secure (SSL) connection
server - String, address of server port - Integer, port of server
Returns an EventMachine::RTMP::SecureConnection object
25 26 27 |
# File 'lib/em-rtmp/rtmp.rb', line 25 def self.ssl_connect(server, port=443) EventMachine.connect server, port, EventMachine::RTMP::SecureConnection end |