jnetpcap.capture
Interface RemoteSession

All Superinterfaces:
CaptureFactory.Factory, CaptureFactory.RemoteFactory, java.io.Closeable

public interface RemoteSession
extends CaptureFactory.RemoteFactory, java.io.Closeable

A remote session which allows remote capture of live packets or capture file manipulation. Use a CaptureServer to create a RemoteSession instance which is connected to the requested remote system. The RemoteSession object implements the CaptureFactory which is an abstract factory method for establishing live or file captures and performing operations on files. All these operations are preformed on the remote system transparentely. Notice that CaptureFactory is the same interface used to create local captures and manipulate local files, so this is a very powerful abstract which allows exact same functionality but accross the network.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class RemoteSession.Option
           
static class RemoteSession.RemoteService
          Lists all the avaiable remote services that can be opened, changed, enabled and disabled.
static interface RemoteSession.RemoteSessionFactory
          Remote session handler is an object that is called by the CaptureServer to handle an incomming RemoteSession connection.
 
Method Summary
 void close()
           
 java.util.List<MutableCaptureInterface> listInterfaces()
          Gets a list of all the devices capable of doing live capture on this or remote system.
 
Methods inherited from interface jnetpcap.capture.CaptureFactory.Factory
append, catFile, catFile, compactFile, convertFile, newFile, newFile, newFile, newInterface, newInterface, openFile, openFile, openLive, openLive, openLive, openLive, splitFile, splitFile, typeOfFile, validateFile
 

Method Detail

listInterfaces

java.util.List<MutableCaptureInterface> listInterfaces()
                                                       throws java.io.IOException
Description copied from interface: CaptureFactory.Factory
Gets a list of all the devices capable of doing live capture on this or remote system.

Specified by:
listInterfaces in interface CaptureFactory.Factory
Returns:
list of capture capable devices
Throws:
java.io.IOException - any IO errors

close

void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException