Named pipe write/read operation

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Sep 21 13:48:45 GMT 2008

On Sun, Sep 21, 2008 at 04:10:43PM +0300, Andrey Kondakov wrote:
> I have Win32 program that defines particular named pipe. All what I
> wish is to send data chunk there and get answer.
> The answer that I supposed to get is not encoded using RPC headers,
> and that's why rpc_api_pipe function fails to parse response data
> and build appropriate out_data structure.
> I noticed rpc_api_pipe expects to get response that consists of
> Verison Major, Minor and etc in order to init resulting prs_struct
> instance.
> But what should I do if the mentioned fields are not present in reply pdu?
> To mine mind I need to use write/read functions that work with Write
> AndX and Read AndX requests. I mean cli_write and cli_read functions.
> But anyway they behavior supposedly differs from Win32 Write and
> ReadFile requests. The latter generate only SMB header with subsequent
> actual data chunk.
> Is there in samba suit any technique that implements such desired behavior?

Quite soon, i.e. within the next very few weeks, there will
be much more flexible support for named pipe server support
in Samba 3. We need this because we want to merge Samba 3
and Samba 4, and Samba 4 will be passed the raw named pipe
data stream via a unix domain socket. The code already
exists on;a=shortlog;h=s3-merge34

It needs to be merged though.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list