diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-12 15:26:59 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-12 15:26:59 +0000 |
commit | 00d391705c713b06b2c80f0b36724f9bb4d806ae (patch) | |
tree | 752a60d22cf9fd892f8780126a3b51ca091543d5 /socket.h | |
parent | svn merge -r 585:599 https://svn.openvpn.net/projects/openvpn/trunk (diff) | |
download | openvpn-00d391705c713b06b2c80f0b36724f9bb4d806ae.tar.xz |
version 2.1_beta2
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@601 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -180,6 +180,9 @@ struct link_socket bool did_resolve_remote; +# define SF_TCP_NODELAY (1<<0) + unsigned int sockflags; + /* for stream sockets */ struct stream_buf stream_buf; struct buffer stream_buf_data; @@ -276,7 +279,8 @@ link_socket_init_phase1 (struct link_socket *sock, int connect_retry_seconds, int mtu_discover_type, int rcvbuf, - int sndbuf); + int sndbuf, + unsigned int sockflags); void link_socket_init_phase2 (struct link_socket *sock, const struct frame *frame, @@ -335,6 +339,9 @@ void setenv_trusted (struct env_set *es, const struct link_socket_info *info); void remote_list_randomize (struct remote_list *l); +bool link_socket_update_flags (struct link_socket *ls, unsigned int sockflags); +void link_socket_update_buffer_sizes (struct link_socket *ls, int rcvbuf, int sndbuf); + /* * Low-level functions */ |