Creates a socket that is bound to a specific service provider.
- Parameters
-
| addressFamily | Address family specification. |
| type | Type specification for the new socket. This should be a member of the MFSocketType enumerated type. |
| protocol | Protocol to be used with the socket that is specific to the indicated address family. |
- Returns
- A reference to the newly created socket. If CreateSocket failed, the return value is -1.