chiark / gitweb /
reenable pctb uploads with new PCTB protocol version number 005y
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 27 Aug 2010 22:22:26 +0000 (23:22 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 27 Aug 2010 22:22:26 +0000 (23:22 +0100)
src/com/tedpearson/ypp/market/ControlPanel.java
src/com/tedpearson/ypp/market/MarketUploader.java

index 57ed140..ccdc7c6 100644 (file)
@@ -35,7 +35,7 @@ public class ControlPanel extends JFrame {
                JLabel version = new JLabel(version_label);
 
                setLayout(new GridLayout(6,1));
-               //add(toPCTB);
+               add(toPCTB);
                add(toYarrg);
                add(live);
                add(testing);
index d46125b..84ca983 100644 (file)
@@ -435,7 +435,7 @@ public class MarketUploader implements TopLevelWindowListener, GUIInitializedLis
                //System.out.println(sells);
                //System.out.println("\n\n\n"+buys);
 
-               if (false) { // uploadToPCTB
+               if (uploadToPCTB) {
                        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
                        pm.setProgress(60);
                        pm.setNote("Sending data");
@@ -445,7 +445,7 @@ public class MarketUploader implements TopLevelWindowListener, GUIInitializedLis
                        GZIPOutputStream out = new GZIPOutputStream(outStream);
                        //FileOutputStream out = new FileOutputStream(new File("output.text"));
                        DataOutputStream dos = new DataOutputStream(out);
-                       dos.writeBytes("005\n");
+                       dos.writeBytes("005y\n");
                        dos.writeBytes(stallMap.size()+"\n");
                        dos.writeBytes(getAbbrevStallList(stallMap));
                        writeBuySellOffers(buys,sells,offerCount,out);