A C D E F G H I M N O P Q R S T U

A

addConnection(String, int) - Method in class com.kenmccrary.jtella.GNUTellaConnection
Attempts an outgoing connection on the specified host
addFileRecord(SearchReplyMessage.FileRecord) - Method in class com.kenmccrary.jtella.SearchReplyMessage
Adds a file record.
addHost(Host) - Method in class com.kenmccrary.jtella.HostCache
Adds a host to the cache
addHostCacheServant(String, int) - Method in class com.kenmccrary.jtella.GNUTellaConnection
Informs the system of a host cache servant on the network
asyncSender - Variable in class com.kenmccrary.jtella.Connection
 

C

close() - Method in class com.kenmccrary.jtella.SearchSession
Close the session, ignore future query hits
close() - Method in class com.kenmccrary.jtella.FileServerSession
Closes the session
close() - Method in class com.kenmccrary.jtella.SearchMonitorSession
Close the session, discontinue monitoring
com.kenmccrary.jtella - package com.kenmccrary.jtella
 
Connection - class com.kenmccrary.jtella.Connection.
Represents a connection to an application communicating with the GNUTella protocol
CONNECTION_INCOMING - Static variable in class com.kenmccrary.jtella.Connection
Connection created by another servant
CONNECTION_OUTGOING - Static variable in class com.kenmccrary.jtella.Connection
Connection created be JTella servant
connectionData - Variable in class com.kenmccrary.jtella.Connection
 
ConnectionData - class com.kenmccrary.jtella.ConnectionData.
Provides a linkage between the Servant and JTella.
ConnectionData() - Constructor for class com.kenmccrary.jtella.ConnectionData
 
ConnectionList - class com.kenmccrary.jtella.ConnectionList.
Contains the set of current connections, the node connections can be in different states, not all may be active
createFileServerSession(MessageReceiver) - Method in class com.kenmccrary.jtella.GNUTellaConnection
Creates a file serving session.
createSearchSession(String, int, int, MessageReceiver) - Method in class com.kenmccrary.jtella.GNUTellaConnection
Creates a session to conduct network searches
createTime - Variable in class com.kenmccrary.jtella.Connection
 

D

DownloadConstants - interface com.kenmccrary.jtella.DownloadConstants.
Download speed constants
DOWNLOADSPEED_CABLE - Static variable in interface com.kenmccrary.jtella.DownloadConstants
Cable bandwidth
DOWNLOADSPEED_DSL - Static variable in interface com.kenmccrary.jtella.DownloadConstants
DSL bandwidth
DOWNLOADSPEED_MODEM - Static variable in interface com.kenmccrary.jtella.DownloadConstants
Modem bandwidth
DOWNLOADSPEED_T1 - Static variable in interface com.kenmccrary.jtella.DownloadConstants
T1 bandwidth
DOWNLOADSPEED_T3 - Static variable in interface com.kenmccrary.jtella.DownloadConstants
T3 bandwidth
droppedCount - Variable in class com.kenmccrary.jtella.Connection
 

E

equals(Object) - Method in class com.kenmccrary.jtella.GUID
Compare guids
equals(Object) - Method in class com.kenmccrary.jtella.Host
Equals comparison

F

FileServerSession - class com.kenmccrary.jtella.FileServerSession.
Session that can be used to respond to Query messages and receive Push messages

G

generateGUID() - Static method in class com.kenmccrary.jtella.Utilities
Generate something remotely resembling a windows guid
getClientGUID() - Static method in class com.kenmccrary.jtella.Utilities
Returns the client guid in the form of the wrapper GUID
getClientIdentifier() - Method in class com.kenmccrary.jtella.SearchReplyMessage
Retrieve the client GUID for the replying servant
getClientIdentifier() - Static method in class com.kenmccrary.jtella.Utilities
Generate something resembling a guid for this host
getClientIdentifier() - Method in class com.kenmccrary.jtella.PushMessage
Retrieve the client GUID targeted by this push request
getConnectedServant() - Method in class com.kenmccrary.jtella.Connection
Get the connected host
getConnectionData() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Get the ConnectionData settings
getConnectionGreeting() - Method in class com.kenmccrary.jtella.ConnectionData
Get the connection handshake greeting
getConnectionList() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Gets the current list of connections to GNUTella
getDownloadSpeed() - Method in class com.kenmccrary.jtella.SearchReplyMessage
Returns the replying host's connection bandwidth
getFileCount() - Method in class com.kenmccrary.jtella.SearchReplyMessage
Query the umber of files found for the search
getFileIndex() - Method in class com.kenmccrary.jtella.PushMessage
Retrieve the index of the file to push
getFileRecord(int) - Method in class com.kenmccrary.jtella.SearchReplyMessage
Get information about the files found
getHostCache() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Get the current HostCache.
getIncomingPort() - Method in class com.kenmccrary.jtella.ConnectionData
Get the port to used for incoming connections Defaults to 6346.
getIncommingConnectionCount() - Method in class com.kenmccrary.jtella.ConnectionData
Get the requested number of incomming connection return requested incomming connection count
getIndex() - Method in class com.kenmccrary.jtella.SearchReplyMessage.FileRecord
Get the index of the file
getIPAddress() - Method in class com.kenmccrary.jtella.SearchReplyMessage
Query the IP address for this pong message result is an IP address in the form of "206.26.48.100".
getIPAddress() - Method in class com.kenmccrary.jtella.PushMessage
Get the IP Address to push to
getKnownHosts() - Method in class com.kenmccrary.jtella.HostCache
Get a list of the Hosts cached
getList() - Method in class com.kenmccrary.jtella.ConnectionList
Gets a list containing the connections
getMessageDropCount() - Method in class com.kenmccrary.jtella.Connection
Get the number of messages dropped on this connection
getMessageInput() - Method in class com.kenmccrary.jtella.Connection
Get the message input count
getMessageOutput() - Method in class com.kenmccrary.jtella.Connection
Get the message output count
getMinimumDownloadSpeed() - Method in class com.kenmccrary.jtella.SearchMessage
Get the minimum download speed for responses
getName() - Method in class com.kenmccrary.jtella.SearchReplyMessage.FileRecord
Get the file name
getOutgoingConnectionCount() - Method in class com.kenmccrary.jtella.ConnectionData
Returns the requested number of outgoing connections
getPort() - Method in class com.kenmccrary.jtella.SearchReplyMessage
Query the port for this search reply
getPort() - Method in class com.kenmccrary.jtella.PushMessage
Get the port the connection should use
getSearchCriteria() - Method in class com.kenmccrary.jtella.SearchMessage
Query the search criteria for this message
getSearchMonitorSession(MessageReceiver) - Method in class com.kenmccrary.jtella.GNUTellaConnection
Get a search monitor session to monitor query requests flowing through this network connection.
getSendTime() - Method in class com.kenmccrary.jtella.Connection
Returns the timestamp of the last send
getServantIdentifier() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Get the servant identifier the GnutellaConnection is using.
getSharedFileCount() - Method in class com.kenmccrary.jtella.ConnectionData
Get the value for shared file count
getSharedFileSize() - Method in class com.kenmccrary.jtella.ConnectionData
Get the value for shared file size, this is the total size of shared files
getSize() - Method in class com.kenmccrary.jtella.SearchReplyMessage.FileRecord
Get the size of the file
getStatus() - Method in class com.kenmccrary.jtella.Connection
Get the current status of the connection
getType() - Method in class com.kenmccrary.jtella.Connection
Get the type of connection, incoming or outgoing
getUpTime() - Method in class com.kenmccrary.jtella.Connection
Get the lenght of time the connection has lived
getVendorCode() - Method in class com.kenmccrary.jtella.SearchReplyMessage
Retrieve the vendor code for the responding servant
getVendorCode() - Method in class com.kenmccrary.jtella.ConnectionData
Get Vendor code for use in QueryReply messages.
GNUTellaConnection - class com.kenmccrary.jtella.GNUTellaConnection.
The GNUTellaConnection represents a connection to the GNUTella network.
GNUTellaConnection() - Constructor for class com.kenmccrary.jtella.GNUTellaConnection
Constructs an empty connection, the application must add a host cache or servant to generate activity
GNUTellaConnection(ConnectionData) - Constructor for class com.kenmccrary.jtella.GNUTellaConnection
Construct the connection specifying connection data.
GNUTellaConnection(ConnectionData, String, int) - Constructor for class com.kenmccrary.jtella.GNUTellaConnection
Construct the connection, providing ConnectionData to initialize the connection and the address of a host cache servant
GNUTellaConnection(String, int) - Constructor for class com.kenmccrary.jtella.GNUTellaConnection
Construct the connection using default connection data and the supplied information regarding the host cache on the network
GUID - class com.kenmccrary.jtella.GUID.
Represents a unique ID
GUID() - Constructor for class com.kenmccrary.jtella.GUID
Construct a new GUID
GUID(short[]) - Constructor for class com.kenmccrary.jtella.GUID
Create a guid from network data

H

hashCode() - Method in class com.kenmccrary.jtella.GUID
Produce a hashcode for this GUID
hashCode() - Method in class com.kenmccrary.jtella.Host
Use the IP address for the hashcode
host - Variable in class com.kenmccrary.jtella.Connection
 
Host - class com.kenmccrary.jtella.Host.
Contains the location of a host on the network
HostCache - class com.kenmccrary.jtella.HostCache.
A cache of the known hosts on the network
HostCacheConnection - class com.kenmccrary.jtella.HostCacheConnection.
Connection to a host cache, a servant primarily intended to provide the locations of active servants on the network.

I

inputCount - Variable in class com.kenmccrary.jtella.Connection
 
inputStream - Variable in class com.kenmccrary.jtella.Connection
 
isOnline() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Query if we are online with the network, with at least one active node connection

M

main(String[]) - Static method in class com.kenmccrary.jtella.Utilities
 
MessageReceiver - interface com.kenmccrary.jtella.MessageReceiver.
A class implementing MessageReceiver is capable of receiving GNUTella network messages
MessageReceiverAdapter - class com.kenmccrary.jtella.MessageReceiverAdapter.
An adapter for the MessageReceiver, provides empty implementations of message receive methods
MessageReceiverAdapter() - Constructor for class com.kenmccrary.jtella.MessageReceiverAdapter
 

N

NodeConnection - class com.kenmccrary.jtella.NodeConnection.
Connection to a servant on the network

O

outputCount - Variable in class com.kenmccrary.jtella.Connection
 
outputStream - Variable in class com.kenmccrary.jtella.Connection
 

P

PingMessage - class com.kenmccrary.jtella.PingMessage.
GNUTella Ping message
PingMessage() - Constructor for class com.kenmccrary.jtella.PingMessage
Ping message queries for hosts No payload on this message
PongMessage - class com.kenmccrary.jtella.PongMessage.
A Pong message is sent in reply to a Ping and provides host information
port - Variable in class com.kenmccrary.jtella.Connection
 
PushMessage - class com.kenmccrary.jtella.PushMessage.
Push message, represents a request to push a file to a receiving node
PushMessage(SearchReplyMessage, int, String, short) - Constructor for class com.kenmccrary.jtella.PushMessage
Construct a PushMessage using a previously received SearchReplyMessage.

Q

queryHit(SearchMessage, SearchReplyMessage) - Method in class com.kenmccrary.jtella.FileServerSession
An application should call queryHit to indicate that a search query is satisfied

R

receivePush(PushMessage) - Method in class com.kenmccrary.jtella.MessageReceiverAdapter
Implement to receive a push request
receivePush(PushMessage) - Method in interface com.kenmccrary.jtella.MessageReceiver
Implement to receive a push request
receiveSearch(SearchMessage) - Method in class com.kenmccrary.jtella.MessageReceiverAdapter
Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently, the default implementation does nothing
receiveSearch(SearchMessage) - Method in interface com.kenmccrary.jtella.MessageReceiver
Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently
receiveSearchReply(SearchReplyMessage) - Method in class com.kenmccrary.jtella.MessageReceiverAdapter
Implement to receive a message reply, the default implementation does nothing
receiveSearchReply(SearchReplyMessage) - Method in interface com.kenmccrary.jtella.MessageReceiver
Implement to receive a message reply
remove(Host) - Method in class com.kenmccrary.jtella.HostCache
Removes a host from the cache
removeHost(Host) - Method in class com.kenmccrary.jtella.HostCache
Remove a host from the cache, probably because its not responding
removeHost(String, int) - Method in class com.kenmccrary.jtella.HostCache
Removes a host from the cache
removeHostCacheServant(String, int) - Method in class com.kenmccrary.jtella.GNUTellaConnection
Removes host cache servant information
router - Variable in class com.kenmccrary.jtella.Connection
 
run() - Method in class com.kenmccrary.jtella.NodeConnection
Connection operation
run() - Method in class com.kenmccrary.jtella.HostCacheConnection
Connection operation

S

SearchMessage - class com.kenmccrary.jtella.SearchMessage.
SearchMessage, the message for queries
SearchMessage(String, int) - Constructor for class com.kenmccrary.jtella.SearchMessage
Construct a GNUTella search query
SearchMonitorSession - class com.kenmccrary.jtella.SearchMonitorSession.
A session for monitoring query trafic
SearchReplyMessage - class com.kenmccrary.jtella.SearchReplyMessage.
Search Reply message(QUERY HIT), response to a search request
SearchReplyMessage.FileRecord - class com.kenmccrary.jtella.SearchReplyMessage.FileRecord.
Represents information about a single file served
SearchReplyMessage.FileRecord(int, int, String) - Constructor for class com.kenmccrary.jtella.SearchReplyMessage.FileRecord
Constructs a record describing a shared file
SearchReplyMessage(SearchMessage, short, String, int) - Constructor for class com.kenmccrary.jtella.SearchReplyMessage
Used to respond to a query message
SearchReplyMessage(SearchMessage, short, String, int, String) - Constructor for class com.kenmccrary.jtella.SearchReplyMessage
Used to respond to a query message
SearchSession - class com.kenmccrary.jtella.SearchSession.
A session for initiating seraches on the network
sendPushMessage(SearchReplyMessage, PushMessage) - Method in class com.kenmccrary.jtella.SearchSession
Request a replying servant push a file
sendTime - Variable in class com.kenmccrary.jtella.Connection
 
setConnectionGreeting(String) - Method in class com.kenmccrary.jtella.ConnectionData
Set the connection handshake greeting.
setIncomingPort(int) - Method in class com.kenmccrary.jtella.ConnectionData
Set the port to used for incomming connections.
setIncommingConnectionCount(int) - Method in class com.kenmccrary.jtella.ConnectionData
Set the requesting number of incomming connections.
setOutgoingConnectionCount(int) - Method in class com.kenmccrary.jtella.ConnectionData
Set the requested number of outgoing connections.
setSharedFileCount(int) - Method in class com.kenmccrary.jtella.ConnectionData
Set the value for current number of shared files Defaults to zero
setSharedFileSize(int) - Method in class com.kenmccrary.jtella.ConnectionData
Set the value for shared file size Defaults to zero
setVendorCode(String) - Method in class com.kenmccrary.jtella.ConnectionData
Set Vendor code for use in QueryReply messages.
shutdown() - Method in class com.kenmccrary.jtella.Connection
Stops the connection and cleans up
shutdownFlag - Variable in class com.kenmccrary.jtella.Connection
 
socket - Variable in class com.kenmccrary.jtella.Connection
 
start() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Starts the connection
status - Variable in class com.kenmccrary.jtella.Connection
 
STATUS_CONNECTING - Static variable in class com.kenmccrary.jtella.Connection
Connection is attempting to connected to GNUTella
STATUS_FAILED - Static variable in class com.kenmccrary.jtella.Connection
Connection is not operating normally
STATUS_OK - Static variable in class com.kenmccrary.jtella.Connection
Connection is operating normally
STATUS_STOPPED - Static variable in class com.kenmccrary.jtella.Connection
Connection has been stopped
stop() - Method in class com.kenmccrary.jtella.GNUTellaConnection
Stop the connection, after execution the GNUTellaConnection is unusable.

T

toString() - Method in class com.kenmccrary.jtella.GUID
Returns a GUID as a String
toString() - Method in class com.kenmccrary.jtella.Host
Get text based host information
type - Variable in class com.kenmccrary.jtella.Connection
 

U

Utilities - class com.kenmccrary.jtella.Utilities.
General purpose utilities
Utilities() - Constructor for class com.kenmccrary.jtella.Utilities
 

A C D E F G H I M N O P Q R S T U