Java ServerSocketChannel SocketChannel (Callback)
        Posted  
        
            by ikurtz
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ikurtz
        
        
        
        Published on 2010-04-21T18:27:37Z
        Indexed on 
            2010/04/21
            19:13 UTC
        
        
        Read the original article
        Hit count: 211
        
I am trying to learn Java. I would like to implement a simple networked connect 4 game as well as a chat feature.
I want my network logic to be non blocking so after much study I found that SocketChannel is what I am after regrading my needs.
What has not made sense still is the lack of CallBack functions in SocketChannels.. Like one finds in C#.
My query for this time is: How do I deliver the data received to the Chat or Game form (JFrame)?
Some guidance is most welcome.
© Stack Overflow or respective owner