} else if (op == 2) { /* Inventory */
// System.printString("DEBUG > Calling inventory transaction\n");
httpresponse();
- String towrite = inventorylist.inventory();
- sock.write(towrite.getBytes());
+ inventorylist.inventory(sock);
} else { /* Error */
// System.printString("T > Error - Unknown transaction\n");
}
int index = prefix.indexOf('/');//Parse the GET client request to find filename
int end = prefix.indexOf('H');
filename = prefix.subString((index+1), (end-1));
- System.printString("\n");
+ // System.printString("\n");
return true;
}
return false;