summaryrefslogtreecommitdiffstats
path: root/source4/smbd/service.h
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* r14380: Reduce the size of structs.hJelmer Vernooij2007-10-101-0/+31
| | | | (This used to be commit 1a16a6f1dfa66499af43a6b88b3ea69a6a75f1fe)
* r5102: This is a major simplification of the logic for controlling top levelAndrew Tridgell2007-10-101-165/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | servers in smbd. The old code still contained a fairly bit of legacy from the time when smbd was only handling SMB connection. The new code gets rid of all of the smb_server specific code in smbd/, and creates a much simpler infrastructures for new server code. Major changes include: - simplified the process model code a lot. - got rid of the top level server and service structures completely. The top level context is now the event_context. This got rid of service.h and server.h completely (they were the most confusing parts of the old code) - added service_stream.[ch] for the helper functions that are specific to stream type services (services that handle streams, and use a logically separate process per connection) - got rid of the builtin idle_handler code in the service logic, as none of the servers were using it, and it can easily be handled by a server in future by adding its own timed_event to the event context. - fixed some major memory leaks in the rpc server code. - added registration of servers, rather than hard coding our list of possible servers. This allows for servers as modules in the future. - temporarily disabled the winbind code until I add the helper functions for that type of server - added error checking on service startup. If a configured server fails to startup then smbd doesn't startup. - cleaned up the command line handling in smbd, removing unused options (This used to be commit cf6a46c3cbde7b1eb1b86bd3882b953a2de3a42e)
* r4728: split up server_services into:Stefan Metzmacher2007-10-101-22/+58
| | | | | | | | | | | | | | | | | | | - stream_socket services the smb, ldap and rpc service which sets up a srtam socket end then waits for connections and - task services which this you can create a seperate task that do something (this is also going through the process_model subsystem so with -M standard a new process for this created with -M thread a new thread ... I'll add datagram services later when we whave support for datagram sockets in lib/socket/ see the next commit as an example for service_task's metze (This used to be commit d5fa02746c6569b09b6e05785642da2fad3ba3e0)
* r4667: Don't follow a NULL pointer for an idle event handler.Andrew Bartlett2007-10-101-3/+1
| | | | | | | Fix up some header comments. Andrew Bartlett (This used to be commit 62005a3924e2af52c7173098b0b38eca14e03609)
* r3507: - added deferred replies on sharing violation in pvfs open. TheAndrew Tridgell2007-10-101-4/+4
| | | | | | | | | | | | | deferred reply is short-circuited immediately when the file is closed by another user, allowing it to be opened by the waiting user. - added a sane set of timeval manipulation routines - converted all the events code and code that uses it to use struct timeval instead of time_t, which allows for microsecond resolution instead of 1 second resolution. This was needed for doing the pvfs deferred open code, and is why the patch is so big. (This used to be commit 0d51511d408d91eb5f68a35e980e0875299b1831)
* r3271: use "struct messaging_context *" instead of "void *" in messaging APIAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit cc93813e4a09c538ad485dc2b3cb4c9be34f3d18)
* r3016: - converted the events code to tallocAndrew Tridgell2007-10-101-0/+2
| | | | | | | | | - added the new messaging system, based on unix domain sockets. It gets over 10k messages/second on my laptop without any socket cacheing, which is better than I expected. - added a LOCAL-MESSAGING torture test (This used to be commit 3af06478da7ab34a272226d8d9ac87e0a4940cfb)
* r3012: added initial support for byte range locking in the posix vfs. This isAndrew Tridgell2007-10-101-0/+15
| | | | | | enough for us to pass locktest, but does not yet support lock timeouts and some of the other esoteric features. (This used to be commit 58a92abd88f190bc60894a68e0528e95ae33fe39)
* r2646: - use a talloc destructor to ensure that sockets from the new socketAndrew Tridgell2007-10-101-3/+0
| | | | | | | library are closed on abnormal termination - convert the service.h structures to the new talloc methods (This used to be commit 2dc334a3284858eb1c7190f9687c9b6c879ecc9d)
* r2326: remove definition and usage of struct socket_contextStefan Metzmacher2007-10-101-11/+1
| | | | | metze (This used to be commit 1854907da8d577db41de9aa14573d5c8c0092f47)
* r1486: commit the start of the generic server infastructureStefan Metzmacher2007-10-101-0/+127
the idea is to have services as modules (smb, dcerpc, swat, ...) the process_model don't know about the service it self anymore. TODO: - the smbsrv should use the smbsrv_send function - the service subsystem init should be done like for other modules - we need to have a generic socket subsystem, which handle stream, datagram, and virtuell other sockets( e.g. for the ntvfs_ipc module to connect to the dcerpc server , or for smb or dcerpc or whatever to connect to a server wide auth service) - and other fixes... NOTE: process model pthread seems to be broken( but also before this patch!) metze (This used to be commit bbe5e00715ca4013ff0dbc345aa97adc6b5c2458)