How cpu intensive is opening a socket
<p>So, I have an application that communicates with a server quite frequently. I have the Socket creation done in a singleton class, to ensure that the work to create it is only done once. However, this is an Android application, and I can never guarantee that the code that cleans up when the application is destroyed will be executed. Therefore, I am currently opening and closing the socket every time I use it. </p>

<p>I have no idea how cpu intensive this is though, can anyone shed some light? </p>
