Java NIO

I've been learning about network programming and tho I understand thread per connection so easily I'm having trouble with java selector and register event loop way in NIO, particular reading when I key file descriptor that is ready to read do I just read till I get my protocol termination line e.g. /r/n/r/n in http, but I'm reading it might not always be available how do you read then pause and come back for a post request for example that has a large binary after the request how is this achieved
1 Reply
Electronic
ElectronicOP5mo ago
I'm thinking about this in tomcat way where I need to create a httpservelt object I can't create half the object how does this all work p.s. I know netty exists
Want results from more Discord servers?
Add your server