|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.kenmccrary.jtella.ConnectionData
Provides a linkage between the Servant and JTella. ConnectionInformation is used
by GNUTellaConnection and others in determining current parameters settable
by the Servant application.
| Constructor Summary | |
ConnectionData()
|
|
| Method Summary | |
java.lang.String |
getConnectionGreeting()
Get the connection handshake greeting |
int |
getIncomingPort()
Get the port to used for incoming connections Defaults to 6346. |
int |
getIncommingConnectionCount()
Get the requested number of incomming connection return requested incomming connection count |
int |
getOutgoingConnectionCount()
Returns the requested number of outgoing connections |
int |
getSharedFileCount()
Get the value for shared file count |
int |
getSharedFileSize()
Get the value for shared file size, this is the total size of shared files |
java.lang.String |
getVendorCode()
Get Vendor code for use in QueryReply messages. |
void |
setConnectionGreeting(java.lang.String greeting)
Set the connection handshake greeting. |
void |
setIncomingPort(int port)
Set the port to used for incomming connections. |
void |
setIncommingConnectionCount(int count)
Set the requesting number of incomming connections. |
void |
setOutgoingConnectionCount(int count)
Set the requested number of outgoing connections. |
void |
setSharedFileCount(int count)
Set the value for current number of shared files Defaults to zero |
void |
setSharedFileSize(int size)
Set the value for shared file size Defaults to zero |
void |
setVendorCode(java.lang.String vendorCode)
Set Vendor code for use in QueryReply messages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionData()
| Method Detail |
public int getOutgoingConnectionCount()
public void setOutgoingConnectionCount(int count)
count - count of desired output connectionspublic int getIncommingConnectionCount()
public void setIncommingConnectionCount(int count)
count - count of requested incomming connectionspublic int getIncomingPort()
NetworkConnectionpublic void setIncomingPort(int port)
NetworkConnectionpublic int getSharedFileCount()
public void setSharedFileCount(int count)
count - number of shared filespublic int getSharedFileSize()
public void setSharedFileSize(int size)
size - size of shared files in KBpublic java.lang.String getConnectionGreeting()
public void setConnectionGreeting(java.lang.String greeting)
greeting - public java.lang.String getVendorCode()
public void setVendorCode(java.lang.String vendorCode)
vendorCode - 4 character code
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||