Hey, can anyone tell me what's wrong with this method? I keep getting <identifier> expected error on line 1.
public static void FaultHandler (DatagramSocket aSocket, InetAddress aHost, int proxyPort, byte[] requestArray, rec_bytes) {
int faultCount = 0;
while ( faultCount < 4 ) {
DatagramPacket request = new DatagramPacket(requestArray, requestArray.length, aHost, proxyPort);
aSocket.send(request);
try {
aSocket.setSoTimeout(4000);
aSocket.receive(reply);
}
catch ( SocketTimeoutException e ) {
faultCount++;
continue;
}
catch ( IOException e ) {
break;
if ( faultCount >= 3 )
System.exit(0);
}
}
}
Thanks