projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a configuration option for TCP keepalives (SO_KEEPALIVE), default off.
[u/mdw/putty]
/
mac
/
otnet.c
diff --git
a/mac/otnet.c
b/mac/otnet.c
index
7881e02
..
35d3b16
100644
(file)
--- a/
mac/otnet.c
+++ b/
mac/otnet.c
@@
-234,7
+234,7
@@
Socket ot_register(void *sock, Plug plug)
}
Socket ot_new(SockAddr addr, int port, int privport, int oobinline,
}
Socket ot_new(SockAddr addr, int port, int privport, int oobinline,
- int nodelay, Plug plug)
+ int nodelay,
int keepalive,
Plug plug)
{
static struct socket_function_table fn_table = {
ot_tcp_plug,
{
static struct socket_function_table fn_table = {
ot_tcp_plug,
@@
-281,7
+281,7
@@
Socket ot_new(SockAddr addr, int port, int privport, int oobinline,
return (Socket) ret;
}
return (Socket) ret;
}
- /* TODO: oobinline, nodelay */
+ /* TODO: oobinline, nodelay
, keepalive
*/
/*
* Bind to local address.
/*
* Bind to local address.