Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP_NODELAY undeclared with C++/Linux #1

Closed
ghost opened this issue Aug 2, 2019 · 0 comments · Fixed by #2
Closed

TCP_NODELAY undeclared with C++/Linux #1

ghost opened this issue Aug 2, 2019 · 0 comments · Fixed by #2

Comments

@ghost
Copy link

ghost commented Aug 2, 2019

Compiling with g++ or clang++ on Ubuntu 18.04 results in the following error:

include/swrap.h: In function ‘int swrapSocket(int, int, char, const char*, const char*)’:
include/swrap.h:171:43: error: ‘TCP_NODELAY’ was not declared in this scope
             setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&nodelay, sizeof(nodelay));
@ghost ghost mentioned this issue Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants