PDCardSetSocket

This function sets the socket state of the specified socket.

Syntax

STATUS PDCardSetSocket( UINT32 uSocket, PPDCARD_SOCKET_STATE pState );

Parameters

uSocket
Specifies the number indicating the socket. The first socket is 0.
pState
Pointer to the PDCARD_SOCKET_STATE structure.

Return Values

Returns one of the CERR_* return codes in the Cardserv.h header file.

Remarks

This function sets the specified socket’s state and adjusts the socket controller appropriately. Callers typically call the PDCardGetSocketState function first, and after making adjustments, the PDCARD_SOCKET_STATE structure then calls this function. This avoids duplicating the socket state on different layers and unintentionally setting socket parameters.