• 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: kEAGAINErr and StateMachines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kEAGAINErr and StateMachines


  • Subject: Re: kEAGAINErr and StateMachines
  • From: "Duane Murphy" <email@hidden>
  • Date: Thu, 27 Mar 2003 23:25:55 -0800

--- At Thu, 27 Mar 2003 22:42:42 -0800, Duane Murphy wrote:

>--- At Thu, 27 Mar 2003 17:14:25 -0800, Duane Murphy wrote:
>
>>I thought I would dredge up some old nightmares while I am doing in depth
>>research.
>>
>>I have a driver that uses open transport state machines to do
>>configurations. After 4 years of this working fine, I now have an
>>ethernet stream interface that is returning kEAGAINErr and I am not
>>handling this.
>
>I wanted to follow up because I think I am shooting in the dark a bit.
>
>I have a configurator for a networking driver that uses open transport
>state machines to do several things. One of those things is to open
>streams to various ethernet ports. In this case I am calling
>OTSMOpenStream and the port is return kEAGAINErr.
>
>The Advanced Client Programming manual says that returning kEAGAINErr
>from CreateStream will cause OT to schedule a deferred task and try
>again. Well, I am inside of the configurator at this point.
>
>I am looking for an idea of what I should do. I suppose I need to create
>a deferred task and call it to do the work I need done later. But what do
>I do in the mean time? OTIdle? The higher level's are expecting this to
>return appropriately.

Yet another follow up.

The request is asynchronous. So I think I am in the clear. If I get a
kEAGAINErr when calling OTSMOpenStream, then I can arrange to post a
system task to be called and run through the state machine again at that
point. At some point the task will be called and I can open the stream.

Any comments on this approach? Any gotchas to be aware of?

Thanks for letting me talk to myself. ;-)

...Duane
_______________________________________________
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:
    • Re: kEAGAINErr and StateMachines
      • From: Quinn <email@hidden>
References: 
 >Re: kEAGAINErr and StateMachines (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Re: kEAGAINErr and StateMachines
  • Next by Date: Re: kEAGAINErr and StateMachines
  • Previous by thread: Re: kEAGAINErr and StateMachines
  • Next by thread: Re: kEAGAINErr and StateMachines
  • Index(es):
    • Date
    • Thread