linux - Preventing write into a socket before the other side accepted the request -


I am implementing a protocol such as FLP in Linux (homework) and I have come to the following problem: The client may be enabled

< P> To connect () and write () succeeded in accepting the other side () (but after that it listens ()). How can I stop the writing process in a separate communication channel without relying on anonymous names like "acceptable acceptable, can you write now"?

The connect () call will not return unless a TCP connection is established. Data server will not reach the application until the server server accepts the call (). However, once the TCP connection is established the client can start sending data. It will be buffer by the server stack until the server is read by the application.

What is the purpose to stop the work of writing? TCP window mechanism will stop data flow if the server is delaying calling ().


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -