Problems after "ed_SocketSetConfig"

Hi, I´m trying to set Socket Config everytime I lose connection or try to make the first one.

Here´s what I´m trying:
Ret = ed_SocketSetConfig(ED_ID_TCPSOCKET_1, (ed_SocketSetupParams_t *)&ServerParam);

If Ret returns “0” it hasn´t set configuration properly. What really happens when I don´t get the “0”??

Sometimes I just can´t set the configuration again.

Best Regards,

Henrique