diff options
author | tturney <tturney@google.com> | 2016-02-23 14:35:34 -0800 |
---|---|---|
committer | tturney <tturney@google.com> | 2016-02-23 15:18:41 -0800 |
commit | f3d7af49517f11b8cee92123219f99744a643ecc (patch) | |
tree | 143125a24630a183292ed435a631f36f5b9537e0 | |
parent | 6db91efa6d19ce55e35b45fcab3d50da3456272c (diff) | |
download | connectivity-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.cpp | 3 |
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; |