• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Endpoint reuse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Evil Finder/CGI question
      • From: Chilton Webb <email@hidden>
References: 
 >Re: Endpoint reuse (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Endpoint reuse
  • Next by Date: Re: Networking problem with OpenPlay
  • Previous by thread: Re: Endpoint reuse
  • Next by thread: Evil Finder/CGI question
  • Index(es):
    • Date
    • Thread