Re: Endpoint reuse
Re: Endpoint reuse
- Subject: Re: Endpoint reuse
- From: Quinn <email@hidden>
- Date: Wed, 5 Mar 2003 17:06:43 +0000
At 12:47 +0000 5/3/03, Mark Thomas wrote:
Now on the client side I do :-
Err = OTConnect( ... )
its returns noErr, which is strange, as I thought its rejected, and then if
I check the endpoint's state its 5 (data transfer mode), so I guess it
wasn't rejected.
This behaviour is inherent in the mismatch of semantics between OSI
networking and TCP. In OSI networking, which is what OT's XTI API
was designed for, the application can decide whether to reject or
accept an incoming connection. In TCP, the kernel always accepts or
rejects the connection attempt, depending on whether the port is
bound. So, because the port is bound for listening, the remote
peer's OTConnect succeeds, and the caller returns immediately.
However, the server's rejection of the connection (via
OTSndDisconnect) will cause the connection to then break. This is
described in moredetail in DTS Q&A NW 24.
<
http://developer.apple.com/qa/nw/nw24.html>
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.