SMBClient - Messenger service

David Lee t.d.lee at
Tue Oct 22 15:00:00 GMT 2002

On Tue, 22 Oct 2002, Nuno Cardoso wrote:

> When I use "net send ..." command in windows to send a Winpopup message
> to other host, the SMB Command associate to this message is single block
> message (0xD0). To do this, it is only necessary sends one SMB "frame"
> to the other host. 
> When I use SMBClient (samba), the SMB Command associate is multi-block
> message (fist it is necessary sends the start comand 0xD5, then a text
> comand 0xD7 and finally the end 0xD6). To do this, It is necessary sends
> 3 SMB "frames". 
> Why SMBClient sends winpopup messages with multi-block message, and not
> single block message???? Where I use multi and where I use single
> message block??? 

The single-frame version can only send a short message (less than 128
bytes), whereas the multi-frame version allows up to 1600 bytes total. See
the description of the "File Sharing Protocol".  (Use Google to search for
"INTEL Part Number 138446".) 

Over the last couple of years I have looked at generalising this code in
Samba, and made some progress.  (In a test implementation, I was able to
use UNIX commands such as "wall" and "write" to produce WinPopup messages
on the client PCs.)  This required extracting, and altering, some code
from smbclient, but this can be done in a re-useable way.

If someone of the Samba Team is willing to facilitate this, I'll willingly
submit the changes I made as a possible starting-point.


:  David Lee                                I.T. Service          :
:  Systems Programmer                       Computer Centre       :
:                                           University of Durham  :
:            South Road            :
:                                           Durham                :
:  Phone: +44 191 374 2882                  U.K.                  :

More information about the samba-technical mailing list