Title: Tracker Interact
Description: Creates the Get Request String and calls GetHandler to get the peer list
Copyright: Copyright (c) 2004
Company: CSI5321
Field Detail |
private java.net.Socket s
announceURL
- StringinfoHash
- StringMalformedURLException
- MalformedURLException
- IOException
- Constructor Detail |
public TrackerInteract()
Method Detail |
public java.util.ArrayList myGet(java.lang.String hostURL, java.lang.String hostName, int port, java.lang.String myParm)
hostURL
- StringhostName
- Stringport
- intmyParm
- StringIOException
- public void trackerCompStopped(java.lang.String announceURL, java.lang.String infoHash, java.lang.String event)
announceURL
- infoHash
- MalformedURLException
- UnsupportedEncodingException
- UnknownHostException
- IOException
- private void sendCompleted(java.lang.String hostURL, java.lang.String hostName, int port, java.lang.String myParm)
hostURL
- hostName
- port
- myParm
- UnknownHostException
- IOException
- public void updateTracker(java.lang.String announceURL, java.lang.String infoHash)
announceURL
- infoHash
- MalformedURLException
- UnsupportedEncodingException
- UnknownHostException
- IOException
- private void sendUpdate(java.lang.String hostURL, java.lang.String hostName, int port, java.lang.String myParm)
hostURL
- hostName
- port
- myParm
- UnknownHostException
- IOException
-