Re: Question about Endpoints and data chunk sizes
Re: Question about Endpoints and data chunk sizes
- Subject: Re: Question about Endpoints and data chunk sizes
- From: Quinn <email@hidden>
- Date: Tue, 13 Jan 2004 13:25:12 +0000
At 17:33 -0600 12/1/04, Chilton Webb wrote:
I'm rewriting some BSD work I've done in OpenTransport, and was
pretty sure I knew what I was doing until I tried this...
OTGetEndpointInfo(ep,&info);
sprintf(s,"size is %d", info.tsdu);
That returns '0' as the size. Isn't it supposed to be the standard
data unit size for transmission? Does 0 mean unlimited or something?
Is there some infernal typo in those two lines I'm just flat missing?
The following page is the first when you search Apple's developer web
site for "tsdu".
<
http://developer.apple.com/documentation/mac/NetworkingOT/NetworkingWOT-136.html>
For a transactionless endpoint, a positive value indicates
the maximum number of bytes in a transport service data unit
(TSDU) for this endpoint. A value of T_INFINITE (-1) indicates
that there is no limit to the size of a TSDU. A value of 0
indicates that the provider does not support the concept of a
TSDU. This means that you cannot send data with logical
boundaries preserved across a connection.
TCP returns 0 because it's a streaming protocol and doesn't allow you
to preserve logical packet boundaries in the stream.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.