summaryrefslogtreecommitdiff
path: root/src/netops.h
Commit message (Collapse)AuthorAgeFilesLines
* Use http_parser_parse_url to parse urlsBen Straub2013-11-041-0/+1
|
* Deploy gitno_connection_data into transport (winhttp)Ben Straub2013-09-261-3/+1
| | | | ...and have that call manage replaced memory in the output structure.
* Migrate redirect URL handling to common utilityBen Straub2013-09-251-0/+25
|
* Enhance url parsing to include passwordsBen Straub2013-01-311-1/+7
|
* Stash username from url (but don't use it yet)Ben Straub2013-01-301-1/+1
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Reorganize transport architecture (squashed 3)Philip Kelley2012-11-011-15/+42
|
* gitno_buffer: callback on each packetBen Straub2012-10-191-0/+2
| | | | | The fetch code takes advantage of this to implement a progress callback every 100kb of transfer.
* Merge remote-tracking branch 'nulltoken/topic/amd64-compat' into developmentVicent Marti2012-08-021-2/+2
|\ | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/oid.c
| * portability: Improve x86/amd64 compatibilitynulltoken2012-07-241-1/+1
| |
* | remote: use the same code to control git and httpCarlos Martín Nieto2012-07-301-0/+4
| | | | | | | | | | | | | | | | This allows us to add capabilitites to both at the same time, keeps them in sync and removes a lot of code. gitno_buffer now uses a callback to fill its buffer, allowing us to use the same interface for git and http (which uses callbacks).
* | remote: start moving the protocol to a common areaCarlos Martín Nieto2012-07-301-3/+2
|/ | | | | | | For the transition, http is going to keep its own logic until the git/common code catches up with the implied multi_ack that http has. This also has the side-effect of making the code cleaner and more correct regardingt he protocol.
* ssl: teardown the connection on closeCarlos Martín Nieto2012-05-191-0/+1
| | | | | This should help us free some resources, though the libraries do keep some buffers allocated regardless.
* https: make it work with OpenSSL as wellCarlos Martín Nieto2012-05-191-5/+3
| | | | Add specific functions that use OpenSSL instead of GnuTLS
* http: add https support when GnuTLS is availableCarlos Martín Nieto2012-05-191-3/+11
| | | | | | | | If it's not available, an error saying so will be returned when trying to use a https:// URL. This also unifies a lot of the network code to use git_transport in many places instead of an socket descriptor.
* Merge remote-tracking branch 'scottjg/fix-mingw32' into developmentVicent Martí2012-05-051-1/+1
|\ | | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/transports/http.c tests-clar/clar
| * Fix gitno_connect() error handling on WindowsScott J. Goldman2012-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | gitno_connect() can return an error or socket, which is fine on most platforms where sockets are file descriptors (signed int), but on Windows, SOCKET is an unsigned type, which is problematic when we are trying to test if the socket was actually a negative error code. This fix seperates the error code and socket in gitno_connect(), and fixes the error handling in do_connect() functions to compensate. It appears that git_connect() and the git-transport do_connect() functions had bugs in the non-windows cases too (leaking sockets, and not properly reporting connection error, respectively) so I went ahead and fixed those too.
* | Fix warnings on 64-bit windows buildsRussell Belfer2012-04-171-7/+3
|/ | | | | This fixes all the warnings on win64 except those in deps, which come from the regex code.
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* net,pkt: add chunked supportCarlos Martín Nieto2011-10-121-0/+1
| | | | | | | | | As we don't know the length of the message we want to send to the other end, we send a chunk size before each message. In later versions, sending the wants might benefit from batching the lines together. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* netops: abstract away socket closingCarlos Martín Nieto2011-10-011-0/+1
| | | | | | | 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>
* Initialise the winsock DLLCarlos Martín Nieto2011-10-011-2/+2
| | | | | | | | Windows wants us to initialise the networking DLL before we're allowed to send data through a socket. Call WSASetup and WSACleanup if GIT_WIN32 is defined. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Merge pull request #405 from carlosmn/http-lsVicent Martí2011-09-221-0/+2
|\ | | | | Implement ls-remote over HTTP
| * Move extract_host_and_port to netops and add default port argumentCarlos Martín Nieto2011-09-041-0/+2
| | | | | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* | Cleanup legal dataVicent Marti2011-09-191-1/+4
|/ | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* netops: This is the proper checkVicent Marti2011-08-301-1/+1
|
* netops: Use the size_t, LukeVicent Marti2011-08-301-4/+4
|
* Fix Windows compilationCarlos Martín Nieto2011-08-301-1/+8
| | | | | | | | | Sockets on Windows are unsigned, so define a type GIT_SOCKET which is signed or unsigned depending on the platform. Thanks to Em for his patience with this. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Use gitno_buffer in the git transportCarlos Martín Nieto2011-06-271-3/+3
| | | | | | This allows us to leave out the buffer handling logic. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add gitno_buffer as a recv wrapperCarlos Martín Nieto2011-06-271-0/+12
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Implement and use gitno_sendCarlos Martín Nieto2011-06-261-0/+1
|
* Create netops and start moving git:// to itCarlos Martín Nieto2011-06-261-0/+9
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>