LPFN_CONNECTEX lpfnConnectEx = NULL; // a pointer to the 'ConnectEx() ' function
GUID GuidConnectEx = WSAID_CONNECTEX; // The Guid
Once the socket is created, we have to bind it to a port and interface. While using 'ConnectEx() ', binding has to be done explicitly because the main purpose of this API other than allowing overlapped calls is, performance.