Package org.xj3d.core.eventmodel
Interface NetworkProtocolHandler
- All Known Implementing Classes:
DISProtocolHandler,DISXMLProtocolHandler
public interface NetworkProtocolHandler
A handler for a specific network protocol.
- Version:
- $Revision: 1.2 $
- Author:
- Alan Hudson
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a network node to the management system.voidclear()Force clearing all currently managed nodes from this manager now.Get the protocol this handler supports.voidProcess network traffic now.voidRemove a network node from the management system.voidsetErrorReporter(org.j3d.util.ErrorReporter reporter) Register an error reporter with the manager so that any errors generated by the loading of script code can be reported in a nice, pretty fashion.voidshutdown()Shutdown the protocol handler now.
-
Method Details
-
getProtocol
String getProtocol()Get the protocol this handler supports.- Returns:
- the protocol this handler supports
-
setErrorReporter
void setErrorReporter(org.j3d.util.ErrorReporter reporter) Register an error reporter with the manager so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.- Parameters:
reporter- The instance to use or null
-
processNetworkTraffic
void processNetworkTraffic()Process network traffic now. -
addNode
Add a network node to the management system.- Parameters:
node- The instance to add to this manager
-
removeNode
Remove a network node from the management system.- Parameters:
node- The instance to add to this manager
-
clear
void clear()Force clearing all currently managed nodes from this manager now. This is used to indicate that a new world is about to be loaded and everything should be cleaned out now. -
shutdown
void shutdown()Shutdown the protocol handler now. If this is using any external resources it should remove those now as the entire application is about to die
-