• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Why does opening a java nio selector result in a socket level connection being created on a dynamic

 
Ranch Hand
Posts: 188
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to understand how the Java NIO library works ...

I have written some code which just opens multiple selectors



Each time when i open a selector i can see connections being created at the socket level, so for example in this case 3 connections get created.

In the below image i have highligted those 3 connections being made to dynamic ports ...

This question is closely linked to the this one


Capture.PNG
[Thumbnail for Capture.PNG]
Connections image
reply
    Bookmark Topic Watch Topic
  • New Topic