It is roughly such
MFC CAsyncSocket categories in the Send () function can be sent through forced into a BYTE * structure pointer to data exchange, such as
Typedef struct _a
{
BYTE name [20].
BYTE password [20].
} A, * PA;
But if the variable length of the string is defined as the following
Typedef struct _a
{
BYTE * name;
BYTE * password;
} A, * PA;
In Recive () to the data after only one variable address rather than a specific variable
How do I solve?
CodePudding user response:
Need to bring a variable length so accept the know how to accept dataCodePudding user response:
You have a problem sending code? Is it & amp; The structure of address?