How exactly does fopen(), fclose() work?
Posted
by
user625672
on Stack Overflow
See other posts from Stack Overflow
or by user625672
Published on 2011-02-26T23:15:49Z
Indexed on
2011/02/26
23:25 UTC
Read the original article
Hit count: 232
Hi,
I was just wondering about the functions fopen, fclose, socket and closesocket. When calling fopen or opening a socket, what exactly is happening (especially memory wise)?
Can opening files/sockets without closing them cause memory leaks?
And third, how are sockets created and what do they look like memory wise?
I'm also interrested in the role of the operating system (Windows) in reading the sockets and sending the data.
© Stack Overflow or respective owner