diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-09-30 23:48:27 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-10-01 00:41:09 +0200 |
commit | bad53552e539e58b76c4fcf4902686534f8a2678 (patch) | |
tree | 33eee462cf8d8e6ab4a4f366bc5c3378d33d1e18 /src/netops.h | |
parent | a28889198cf9565944aa0ff983459c6bf6eec311 (diff) | |
download | libgit2-bad53552e539e58b76c4fcf4902686534f8a2678.tar.gz |
netops: abstract away socket closing
Winsock wants us to use closesocket() instead of close(), so introduce
the gitno_close function, which does the right thing.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.h')
-rw-r--r-- | src/netops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netops.h b/src/netops.h index b0425ae76..203df85af 100644 --- a/src/netops.h +++ b/src/netops.h @@ -27,6 +27,7 @@ void gitno_consume_n(gitno_buffer *buf, size_t cons); int gitno_connect(const char *host, const char *port); int gitno_send(GIT_SOCKET s, const char *msg, size_t len, int flags); +int gitno_close(GIT_SOCKET s); int gitno_select_in(gitno_buffer *buf, long int sec, long int usec); int gitno_extract_host_and_port(char **host, char **port, const char *url, const char *default_port); |