summaryrefslogtreecommitdiff
path: root/source4/lib/socket/connect.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:lib: use tevent_ fns names instead of legcay event_ onesSimo Sorce2011-08-131-2/+2
|
* s4:lib/socket: s/private/private_dataStefan Metzmacher2009-02-021-3/+3
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-7/+7
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* s4:lib/socket: socket_connect_send() and socket_connect_ev() should only ↵Stefan Metzmacher2008-12-181-38/+3
| | | | | | wrok with addresses metze
* s4:lib/socket: we need to lookup the #20 netbios name when we connect to a ↵Stefan Metzmacher2008-12-171-1/+1
| | | | | | remote server metze
* s4:lib/socket: remove unused codeStefan Metzmacher2008-12-171-22/+0
| | | | metze
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* r26406: Make a copy to prevent modification of the loadparm configuration.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit c0f2775fd8bd88aad3497d59a7857d7a8a0978c5)
* r26397: Fix circular dependency in samba-socket.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 801c8c766cb6a104751be8829593e0e123508134)
* r26376: Add context for libcli_resolve.Jelmer Vernooij2007-12-211-5/+4
| | | | (This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
* r26335: Specify name_resolve_order to socket code.Jelmer Vernooij2007-12-211-2/+4
| | | | (This used to be commit b03e5d00110be3f1fe5809dad4eb6ca5cea7463d)
* r25522: Convert to standard bool types.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij2007-10-101-0/+1
| | | | | file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
* r12804: This patch reworks the Samba4 sockets layer to use a socket_addressAndrew Bartlett2007-10-101-30/+28
| | | | | | | | | | | | | | | | | | | | structure that is more generic than just 'IP/port'. It now passes make test, and has been reviewed and updated by metze. (Thankyou *very* much). This passes 'make test' as well as kerberos use (not currently in the testsuite). The original purpose of this patch was to have Samba able to pass a socket address stucture from the BSD layer into the kerberos routines and back again. It also removes nbt_peer_addr, which was being used for a similar purpose. It is a large change, but worthwhile I feel. Andrew Bartlett (This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r12239: as we only get error from our events system when we wait for read ↵Stefan Metzmacher2007-10-101-1/+1
| | | | | | | | | | events, we need to initialy ask for read events too, otherwise we'll never get an error back from socket_connect() metze (This used to be commit 7d94054d0fc954e6d810573430f2c5d35b73125d)
* r12116: got rid of composite_trigger_done() and composite_trigger_error(), andAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | instead make the normal composite_done() and composite_error() functions automatically trigger a delayed callback if the caller has had no opportunity to setup a async callback this removes one of the common mistakes in writing a composite function (This used to be commit f9413ce792ded682e05134b66d433eeec293e6f1)
* r11821: got rid of two more unnecessary variables and made the variable namesAndrew Tridgell2007-10-101-60/+58
| | | | | a bit more consistent (This used to be commit 4b6e9c7c978dfca54c05ed2d8995d1333ed21b02)
* r11820: fixed some problems with the socket socket.c code.Andrew Tridgell2007-10-101-68/+72
| | | | | | | | | | | | | | | | | - removed the duplicate calls to socket_connect(), instead creating a common function socket_send_connect() used by both code paths - fixed some NULL ptr checks (probably was cut-and-paste bugs) - ensure we use the result of the name resolution - added a few comments - use 'fde' for the file description event. The variable name 'connect_ev' immediately made me think of an event context, not a fde. Using common variable name conventions makes code a bit easier to read (This used to be commit 37b73521b4c858c78013279daaa71352c704551d)
* r11811: Revert 11808, this broke the selftest. No idea why though. Why do we ↵Volker Lendecke2007-10-101-2/+2
| | | | | | | | | | | to the resolve_name if it's not used? I know this is my code, but I don't understand why it breaks tests. Volker (This used to be commit 577a5639d3fc008480e988864bb4fb59939bc2d8)
* r11808: Fix socket_connect_evVolker Lendecke2007-10-101-2/+2
| | | | (This used to be commit 95bd3ffaf7efb117206c83f7c75c302b54e6d059)
* r11274: Start a connection attempt to the DC's port 389. To do this ↵Volker Lendecke2007-10-101-63/+167
| | | | | | | | | properly, make socket_connect and ldap_connect properly async. Volker (This used to be commit bcc71fc1deeed443d7cf00220ce264011ddf588d)
* r10200: added a composite_trigger_done() call that allows a composite functionAndrew Tridgell2007-10-101-5/+0
| | | | | | | | to cause an event to happen immediately. This allows metzes patch for recognising IPs in resolve_name() to work, and also allows us to remove some of the other code where we currently do specific checks for is_ipaddress(). (This used to be commit 9cc000d868e1257ef6429f6f6f1f9d3c28ca330f)
* r9704: r9684@blu: tridge | 2005-08-27 19:38:31 +1000Andrew Tridgell2007-10-101-5/+10
| | | | | don't try to call the name resolver on non-ipv4 names! (This used to be commit 4bb3d36fe6705bc625fe4122500f681ab7f2dc53)
* r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000Andrew Tridgell2007-10-101-0/+33
| | | | | | | | | | | | - fixed ncacn_ip_tcp to use the generic async name resolution methods, so NBT names now work (as requested several times by abartlet!) - changed resolve_name() to take an event_context, so it doesn't cause the whole process to block - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner event_context_find() call (This used to be commit b3d491b210a8b889a25efcb273e70fefbd01b7f7)
* r7668: - setup HAVE_ILDAP to enable the ildap backend in ldbAndrew Tridgell2007-10-101-1/+2
| | | | | - fixed a bug in socket_connect_ev() (This used to be commit 3f77b879a035929a843e02b798d54eba6625bde7)
* r7660: improved error handling in socket_connect_ev() (it matters when nameAndrew Tridgell2007-10-101-0/+3
| | | | | resolution fails) (This used to be commit 4013c2ddea0cd03f875e2acf40d2a34344017d05)
* r7626: a new ldap client library. Main features are:Andrew Tridgell2007-10-101-0/+74
- hooked into events system, so requests can be truly async and won't interfere with other processing happening at the same time - uses NTSTATUS codes for errors (previously errors were mostly ignored). In a similar fashion to the DOS error handling, I have reserved a range of the NTSTATUS code 32 bit space for LDAP error codes, so a function can return a LDAP error code in a NTSTATUS - much cleaner packet handling (This used to be commit 2e3c660b2fc20e046d82bf1cc296422b6e7dfad0)