Skip to contentSkip to conversation

socket state after accept() return

DISCUSSION horseriver 2 participants 2 messages Jan 18, 2013 – Jan 19, 2013

lore
Share & tools
lore

horseriver

author
#0 lore raw

hi:

For one socket , which has been returned by accept() call , does its sk_state is assuredly already TCPF_ESTABLISHED ?

thanks!

#1 lore raw
Quoted 4 lines · horseriver

hi:

For one socket , which has been returned by accept() call , does its sk_state is assuredly already TCPF_ESTABLISHED ?

the context is TCP, right?

if so, then yes (this is without deep check in linux network stack code, just based on general logic)

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com