Utilities
Class trackStruct

public class trackStruct

Title: trackStruct.java

Description:This describes the structure of the peer details got from the tracker

Copyright: Copyright (c) 2004

Company: Baylor University

Version:
1.0
Author:
not attributable
Constructor Detail

trackStruct

public trackStruct()
default constructor

trackStruct

public trackStruct(int n,
                   java.lang.String pId,
                   java.lang.String pIP,
                   java.lang.String pPort)
constructor with no, peerid, peer 's ip and port
Parameters:
n - int
pId - String
pIP - String
pPort - String

Method Detail

getIP

public java.lang.String getIP()
returns the ip address of the peer
Returns:
String

getPort

public java.lang.String getPort()
returns the port of the peer
Returns:
String

toString

public java.lang.String toString()
toString function which returns the details in the order id,ip and port
Returns:
String