Class: Ji2p::Control::SocketManager
- Defined in:
- lib/ji2p/control/socket_manager.rb
Class Method Summary collapse
Instance Method Summary collapse
- #connectTunnel ⇒ Object
- #destroy ⇒ Object
- #getServerSocket ⇒ Object
- #is_closed? ⇒ Boolean
- #leaseSet ⇒ Object
- #lookupDest(dest) ⇒ Object
- #myDestination ⇒ Object
- #raw ⇒ Object
- #session ⇒ Object
- #sessionId ⇒ Object
- #supports_ls2? ⇒ Boolean
Class Method Details
.defineManager!(name, kp, opts = Java::JavaUtil::Properties.new, filter = IncomingConnectionFilter::ALLOW) ⇒ Object
16 17 18 19 20 |
# File 'lib/ji2p/control/socket_manager.rb', line 16 def self.defineManager! name, kp, opts=Java::JavaUtil::Properties.new, filter=IncomingConnectionFilter::ALLOW ctx = I2PAppContext.getGlobalContext session = kp.createSession opts new get_impl.new(ctx,session,opts,name,filter) end |
Instance Method Details
#connectTunnel ⇒ Object
22 23 24 |
# File 'lib/ji2p/control/socket_manager.rb', line 22 def connectTunnel @smgr.getSession.connect end |
#destroy ⇒ Object
50 51 52 |
# File 'lib/ji2p/control/socket_manager.rb', line 50 def destroy @smgr.getSession.destroySession end |
#getServerSocket ⇒ Object
58 59 60 |
# File 'lib/ji2p/control/socket_manager.rb', line 58 def getServerSocket SocketServer.new @smgr.getServerSocket end |
#is_closed? ⇒ Boolean
42 43 44 |
# File 'lib/ji2p/control/socket_manager.rb', line 42 def is_closed? @smgr.getSession.closed? end |
#leaseSet ⇒ Object
30 31 32 |
# File 'lib/ji2p/control/socket_manager.rb', line 30 def leaseSet @smgr.getSession.leaseSet end |
#lookupDest(dest) ⇒ Object
54 55 56 |
# File 'lib/ji2p/control/socket_manager.rb', line 54 def lookupDest dest @smgr.getSession.lookupDest dest end |
#myDestination ⇒ Object
26 27 28 |
# File 'lib/ji2p/control/socket_manager.rb', line 26 def myDestination @smgr.getSession.myDestination end |
#raw ⇒ Object
62 63 64 |
# File 'lib/ji2p/control/socket_manager.rb', line 62 def raw @smgr end |
#session ⇒ Object
46 47 48 |
# File 'lib/ji2p/control/socket_manager.rb', line 46 def session @smgr.session end |
#sessionId ⇒ Object
34 35 36 |
# File 'lib/ji2p/control/socket_manager.rb', line 34 def sessionId @smgr.getSession.sessionId end |
#supports_ls2? ⇒ Boolean
38 39 40 |
# File 'lib/ji2p/control/socket_manager.rb', line 38 def supports_ls2? @smgr.getSession.supports_ls2? end |