Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How does the .accept() method work?

843790Mar 28 2007 — edited Mar 30 2007
Hi,

I have checked the source code of the ServerSocket implementation that comes with the jdk.

I tought I was going to find some type of loop. However I found nothing like that! so how does the accept method work.

I mean when we call the .accept() method, the thread in which the socketServer is initialized gets stoped untill a new client connection is recieved! how is this actually managed?

Regards,
Sim085
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2007
Added on Mar 28 2007
3 comments
197 views