summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortturney <tturney@google.com>2016-02-23 14:35:34 -0800
committertturney <tturney@google.com>2016-02-23 15:18:41 -0800
commitf3d7af49517f11b8cee92123219f99744a643ecc (patch)
tree143125a24630a183292ed435a631f36f5b9537e0
parent6db91efa6d19ce55e35b45fcab3d50da3456272c (diff)
downloadconnectivity-f3d7af49517f11b8cee92123219f99744a643ecc.tar.gz
[DO NOT MERGE ANYWHERE] Increase SOCK_BUF_LEN to a larger size
Allows for larger data to transfer on the socket. Cherry-pick from aosp: https://android-review.googlesource.com/#/c/204526/ Change-Id: I4ba1416affe72c9c3e57b91711ae4d851dc6bb1f
-rw-r--r--sl4n/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sl4n/main.cpp b/sl4n/main.cpp
index 0aab002..4ded7c0 100644
--- a/sl4n/main.cpp
+++ b/sl4n/main.cpp
@@ -33,7 +33,8 @@
const int kBacklogInt = 10;
#define PORT 8080
-#define SOCK_BUF_LEN 100
+// TODO: Set to a lower buffer size and read socket data until termination
+#define SOCK_BUF_LEN 4096
#define MEMSET_VALUE 0
int client_sock;