Đỗ Huyền Trang
New member
How do you check how many sockets are open in Linux?
Answer
check all socket opened in linux OS
Answer
check all socket opened in linux OS
- Ask for a list of opened “files” lsof – doctorlove Jul 8 ’13 at 9:39.
- If you need to handle in code, you should maintain a list of valid sockets and close whenever needed. – …
- little off topic, You should check value of socketfd(returned from socket) for better error handling. –