summaryrefslogtreecommitdiffstats
path: root/sl4n
diff options
context:
space:
mode:
authortturney <tturney@google.com>2016-02-23 14:35:34 -0800
committertturney <tturney@google.com>2016-02-23 14:36:47 -0800
commit4b5dc8be3eeab0fa15140967b06e5a5a4cea80b0 (patch)
tree794236c3f295a68c462a30deebc7e5e028103a20 /sl4n
parent0020f162e486a896daabc23d967960544134154c (diff)
downloadplatform_packages_apps_Test_connectivity-4b5dc8be3eeab0fa15140967b06e5a5a4cea80b0.tar.gz
platform_packages_apps_Test_connectivity-4b5dc8be3eeab0fa15140967b06e5a5a4cea80b0.tar.bz2
platform_packages_apps_Test_connectivity-4b5dc8be3eeab0fa15140967b06e5a5a4cea80b0.zip
Increase SOCK_BUF_LEN to a larger size
Allows for larger data to transfer on the socket. Change-Id: I4ba1416affe72c9c3e57b91711ae4d851dc6bb1f
Diffstat (limited to 'sl4n')
-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;