Negotiate Buffer Size 0x2222 33

Allows a client to negotiate the buffer size that it will use when sending file read and write requests to the server.

NetWare Server:2.x, 3.x, 4.x, 5.x

Request Format

Offset

Content

Type

Request header

6

FunctionCode (33)

byte

7

ProposedBufferSize

word (Hi-Lo)

Reply Format

Offset

Content

Type

Reply header

8

AcceptedBufferSize

word (Hi-Lo)

Return Values

Decimal

Hex

Description

0

0x00

Successful

Remarks

Clients are constrained by the buffer size in two ways. First, any file read or file write request cannot ask for more data than will fit in the negotiated buffer size. Second, any file read or file write requests can not cross a logical byte boundary that corresponds to the negotiated buffer size.

ProposedBufferSize contains the buffer size the client wants to use. This buffer size is only a proposed buffer size and can be modified by the server. AcceptedBufferSize contains the buffer size that the client and the server must actually use for file reading and writing. AcceptedBufferSize will be less than or equal to ProposedBufferSize.

Buffer sizes are constrained to one of the following sizes:

When a service connection is first established, the server assumes a default buffer size of 512 bytes.

See Also

Read From a File 0x2222 72, Write to a File 0x2222 73