diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-28 05:09:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:52 -0500 |
commit | aa19318fd513fb4d6a36793b96fb7ffa66622d6f (patch) | |
tree | 6ec045ea70e727e3c95489a5230d00d36c0b4c9d /source4/smb_server/smb_server.h | |
parent | d668ec53b355de04f45279f14906ab5af116183e (diff) | |
download | samba-aa19318fd513fb4d6a36793b96fb7ffa66622d6f.tar.gz samba-aa19318fd513fb4d6a36793b96fb7ffa66622d6f.tar.bz2 samba-aa19318fd513fb4d6a36793b96fb7ffa66622d6f.zip |
r3307: fixed the send side of the smb_server code to be non-blocking. This
means the whole of the SMB handling code is now non-blocking.
(This used to be commit 30acedb943f0170d30e7b08925280d0dffc7873e)
Diffstat (limited to 'source4/smb_server/smb_server.h')
-rw-r--r-- | source4/smb_server/smb_server.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/smb_server/smb_server.h b/source4/smb_server/smb_server.h index 4fdbdfe671..4de2aac907 100644 --- a/source4/smb_server/smb_server.h +++ b/source4/smb_server/smb_server.h @@ -74,6 +74,9 @@ struct smbsrv_tcon { /* the context for a single SMB request. This is passed to any request-context functions */ struct smbsrv_request { + /* the smbsrv_connection needs a list of requests queued for send */ + struct smbsrv_request *next, *prev; + /* the server_context contains all context specific to this SMB socket */ struct smbsrv_connection *smb_conn; @@ -289,4 +292,8 @@ struct smbsrv_connection { /* this holds a partially received request */ struct smbsrv_request *partial_req; + + /* this holds list of replies that are waiting to be sent + to the client */ + struct smbsrv_request *pending_send; }; |