Documentation for YunServer.accept() missing?

Hello!
Did I miss something or is the documentation of the YunServer.accept() method not there?

It's missing. Well spotted

Could you please tell me wether a call to accept() is blocking or if not, what it returns if no client is connected?

It's blocking and in case there is no client, it will return an unconnected one. Usual pattern is

YunClient client = server.accept();
if (client) {
  //do things
  client.stop();
}

Thanks!
And will interrupts/timers be disabled using noInterrupts() within accept?

We never disable interrupts nor use noInterrupts() inside accept.

Thx

Hi, i think i have the same problem, looking the Bridge example program i saw that there is structure of Server type, next i saw there is a program line where call the method accept() for the server type variable... i dont understand why there is no accept() method in the reference of arduino site...

thanks for help...

This thread is over a year old and there still is no documentation on the website for this method. Where do we complain officially?

cyborg5:
This thread is over a year old and there still is no documentation on the website for this method. Where do we complain officially?

cyborg5,
if you look at the top of the thread, you'll see Federico Fissore. He is one of the founders of Arduino. Sometimes things get dropped. Otherwise, you can make a note of it to Website and Forum.

Thanks for point that out. I am writing some documentation on the Yun. I should be ready in another week. I'll add this to it.

Jesse

Forgive me for continuing an old thread, but now that it's been revived, I just saw this comment for the first time:

I guess I don't understand why this would be called blocking? It checks to see if a connection is pending, and if so it returns a Client object, and if not it returns NULL. I wouldn't call that blocking.

I've used the pattern above, and while I haven't measured how much time the accept() call takes, it isn't significantly slowing down my loop and, other things still happen in a timely manner.