jnetpcap.capture
Class RemoteServer
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 toauthentication - 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 toport - use the specified port instead of the default remote session
portauthentication - authentication parameter used to authenticate the remote
session
- Returns:
- a connected remote session to the remote server
- Throws:
java.io.IOException
RemoteAuthenticationException