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 57ed140fe967bdc4ea48819c43c092e376c1b06d..ccdc7c6730cf410e001d02144b3c436a23274bda 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 d46125b42a13b832082e6db4d44ddf4473c90b27..84ca983c89c080a7feee58e7ba602babfa3e35f1 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);