jnetpcap.capture
Class RemoteServer

java.lang.Object
  extended by jnetpcap.capture.RemoteServer

public class RemoteServer
extends java.lang.Object

Allows remote capture sessions to be started from non-local system.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Constructor Summary
RemoteServer(byte[] authentication)
           
RemoteServer(byte[] authentication, RemoteSession.RemoteSessionFactory handler)
           
 
Method Summary
 void close()
           
 void listen()
           
static RemoteSession openSession(java.net.URI uri)
          Creates an empty, but connected session to the remote server.
static RemoteSession openSession(java.net.URI uri, byte[] authentication)
          Creates an empty, but connected session to the remote server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServer

public RemoteServer(byte[] authentication)
             throws java.lang.InstantiationException,
                    java.lang.IllegalAccessException,
                    java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

RemoteServer

public RemoteServer(byte[] authentication,
                    RemoteSession.RemoteSessionFactory handler)
             throws java.lang.InstantiationException,
                    java.lang.IllegalAccessException,
                    java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
Method Detail

listen

public void listen()
            throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

openSession

public static RemoteSession openSession(java.net.URI uri)
                                 throws java.io.IOException,
                                        RemoteAuthenticationException
Creates an empty, but connected session to the remote server. At that point any of the RemoteSession commands can be invoked and new remote captures started.

Parameters:
server - server to connect to
authentication - authentication parameter used to authenticate the remote session
Returns:
a connected remote session to the remote server
Throws:
java.io.IOException
RemoteAuthenticationException

openSession

public static RemoteSession openSession(java.net.URI uri,
                                        byte[] authentication)
                                 throws java.io.IOException,
                                        RemoteAuthenticationException
Creates an empty, but connected session to the remote server. At that point any of the RemoteSession commands can be invoked and new remote captures started.

Parameters:
server - server to connect to
port - use the specified port instead of the default remote session port
authentication - authentication parameter used to authenticate the remote session
Returns:
a connected remote session to the remote server
Throws:
java.io.IOException
RemoteAuthenticationException