cleaned up file names and namespace
diff --git a/aos/common/network/receive_socket.cc b/aos/common/network/receive_socket.cc
new file mode 100644
index 0000000..76a7a80
--- /dev/null
+++ b/aos/common/network/receive_socket.cc
@@ -0,0 +1,34 @@
+#include "aos/common/network/receive_socket.h"
+
+#include <string.h>
+#include <math.h>
+#include <errno.h>
+#include <stdint.h>
+#include <stddef.h>
+#include <sys/socket.h>
+
+#include "aos/common/logging/logging.h"
+
+namespace aos {
+namespace network {
+
+static const char *localhost = "0.0.0.0";
+
+int ReceiveSocket::Connect(NetworkPort port) {
+  Reset();
+  const int ret = Socket::Connect(port, localhost);
+  if (ret != 0) {
+    return ret;
+  }
+
+  if (bind(socket_, &addr_.addr,
+           sizeof(addr_)) == -1) {
+    LOG(ERROR, "failed to bind to address '%s' because of %d: %s\n", localhost,
+        errno, strerror(errno));
+    return last_ret_ = -1;
+  }
+  return last_ret_ = 0;
+}
+
+}  // namespace network
+}  // namespace aos