SMB and message

Gerald (Jerry) Carter jerry at samba.org
Thu Jan 30 15:08:14 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 30 Jan 2003, D Jemms wrote:

> I am new to samba world .Hvae many questions in mind.
> can anyone tell me the description of SMB and message
> ?
> What is the functionality of receive_message_or_smb()

Looks like you are going to have spend a good bit more time 
in the code.  The function is explained in the comments
in process.c.

/****************************************************************************
  Do a select on an two fd's - with timeout. 

  If a local udp message has been pushed onto the
  queue (this can only happen during oplock break
  processing) call async_processing()

  If a pending smb message has been pushed onto the
  queue (this can only happen during oplock break
  processing) return this next.

  If the first smbfd is ready then read an smb from it.
  if the second (loopback UDP) fd is ready then read a message
  from it and setup the buffer header to identify the length
  and from address.
  Returns False on timeout or error.
  Else returns True.

The timeout is in milliseconds
****************************************************************************/
static BOOL receive_message_or_smb(char *buffer, int buffer_len, 
				int timeout)
{
...
}



jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+OT/eIR7qMdg1EfYRAjjTAKDUIJ/zxXYYfUPk7mnf6iTYaAEK0gCeIu9q
dmAJDRQpMYH+Os1JQqNJe+w=
=+bT0
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list