mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
picoev: enable running veb services on Termux
This commit is contained in:
parent
772d21034c
commit
a44ff7813a
3 changed files with 145 additions and 2 deletions
|
@ -104,7 +104,7 @@ fn listen(config Config) !int {
|
|||
// can be accepted
|
||||
net.socket_error(C.setsockopt(fd, C.IPPROTO_IPV6, C.IPV6_V6ONLY, &flag_zero, sizeof(int)))!
|
||||
}
|
||||
$if linux {
|
||||
$if linux || termux {
|
||||
// epoll socket options
|
||||
net.socket_error(C.setsockopt(fd, C.SOL_SOCKET, C.SO_REUSEPORT, &flag, sizeof(int)))!
|
||||
net.socket_error(C.setsockopt(fd, C.IPPROTO_TCP, C.TCP_QUICKACK, &flag, sizeof(int)))!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue