Fixed up code, made it prettier, it now follows the stylguide better and is more readable.
git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4182 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/971cv/src/org/spartanrobotics/Client.java b/971cv/src/org/spartanrobotics/Client.java
new file mode 100644
index 0000000..77bac74
--- /dev/null
+++ b/971cv/src/org/spartanrobotics/Client.java
@@ -0,0 +1,25 @@
+/**
+ *
+ */
+package org.spartanrobotics;
+
+import java.nio.ByteBuffer;
+import java.nio.channels.SocketChannel;
+
+/**
+ * @author daniel
+ *
+ */
+
+/** Helper class to store data for AccepterThread. */
+public class Client {
+ public SocketChannel channel; //the client's socket
+ /* Holds overflow data when socket's send buffer gets full, so that
+ * thread can continue running.
+ */
+ public ByteBuffer toSend;
+ /* Keeps track of how many times a non-blocking write operation on a socket
+ * has not written anything because it's buffer was full.
+ */
+ public int failedAttempts;
+}