copied everything over from 2012 and removed all of the actual robot code except the drivetrain stuff


git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4078 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/aos/common/network/SendSocket.h b/aos/common/network/SendSocket.h
new file mode 100644
index 0000000..6d3feb1
--- /dev/null
+++ b/aos/common/network/SendSocket.h
@@ -0,0 +1,28 @@
+#ifndef AOS_NETWORK_SEND_SOCKET_H_
+#define AOS_NETWORK_SEND_SOCKET_H_
+
+#include "Socket.h"
+
+namespace aos {
+
+class SendSocket : public Socket {
+ public:
+	//inline int Send(const void *buf, int length) { return Socket::Send(buf, length); }
+  // Connect must be called before use.
+  SendSocket() {}
+  // Calls Connect automatically.
+	SendSocket(NetworkPort port, const char *robot_ip) {
+    Connect(port, robot_ip);
+  }
+	int Connect(NetworkPort port, const char *robot_ip, int type = SOCK_DGRAM);
+
+  static const size_t MAX_MSG = 4096;
+	char hold_msg_[MAX_MSG];
+	size_t hold_msg_len_;
+	int SendHoldMsg();
+};
+
+} // namespace aos
+
+#endif
+