A very clever implementation of this can be found in the code handling PHP' s fsockopen() located in ext / standard / fsock.c, as shown in Example 32-1.
A very clever implementation of this can be found in the code handling PHP's fsockopen() located in ext / standard / fsock.c, as shown in Exemple 32-1.