50 |
|
/** |
51 |
|
* Creates a new FilterServant. |
52 |
|
* |
53 |
– |
* @param TCPListenPort the TCP port this filter is listening on |
53 |
|
* @param UDPListenPort the UDP port this filter is listening on |
54 |
|
*/ |
55 |
< |
public FilterInfoServant(int TCPListenPort, int UDPListenPort) { |
57 |
< |
_TCPListenPort = TCPListenPort; |
55 |
> |
public FilterInfoServant(int UDPListenPort) { |
56 |
|
_UDPListenPort = UDPListenPort; |
57 |
|
_logger.write(toString(), Logger.SYSINIT, "started"); |
58 |
|
} |
89 |
|
/** |
90 |
|
* Provides information to the FilterManager |
91 |
|
*/ |
94 |
– |
public String getTCPPort() { |
95 |
– |
return new Integer(_TCPListenPort).toString(); |
96 |
– |
} |
97 |
– |
|
98 |
– |
/** |
99 |
– |
* Provides information to the FilterManager |
100 |
– |
*/ |
92 |
|
public String getHostName() { |
93 |
|
try { |
94 |
|
// hacky fix for windows boxes, where getHostName() returns the NetBIOS name ! |
122 |
|
* The UDP port we're listening on |
123 |
|
*/ |
124 |
|
private int _UDPListenPort; |
134 |
– |
|
135 |
– |
/** |
136 |
– |
* The TCP port we're listening on |
137 |
– |
*/ |
138 |
– |
private int _TCPListenPort; |
125 |
|
|
126 |
|
//---STATIC ATTRIBUTES--- |
127 |
|
|