Class: XwotDiscovery::Protocol

Inherits:
Object
  • Object
show all
Defined in:
lib/xwot_discovery/protocol.rb

Overview

An interface for a discovery protocol.

Direct Known Subclasses

XwotProtocol

Instance Method Summary collapse

Instance Method Details

#closeObject



12
13
14
# File 'lib/xwot_discovery/protocol.rb', line 12

def close
  raise 'not implemented!'
end

#listenObject



8
9
10
# File 'lib/xwot_discovery/protocol.rb', line 8

def listen
  raise 'not implemented!'
end

#notify_me(subject) ⇒ Object



24
25
26
# File 'lib/xwot_discovery/protocol.rb', line 24

def notify_me(subject)
  raise 'not implemented!'
end

#receiveObject



20
21
22
# File 'lib/xwot_discovery/protocol.rb', line 20

def receive
  raise 'not implemented!'
end

#send(message) ⇒ Object



16
17
18
# File 'lib/xwot_discovery/protocol.rb', line 16

def send(message)
  raise 'not implemented!'
end