AnsweredAssumed Answered

RTCS_create(), where is RTCS_Destroy()?

Question asked by Carl Norman on Jan 31, 2010
Latest reply on Feb 1, 2010 by Petr MacHala

Do I just call ipcfg_task_destroy(); from my task exit handler and that will look after all recouces for a simple UDP socket connection setup something like this (in short summary):


error = RTCS_create();

error = ipcfg_init_device(IPCFG_default_enet_device, IPCFG_default_enet_address);

error = ipcfg_bind_dhcp_wait(0, TRUE, &ip_data);

error = ipcfg_get_ip(IPCFG_default_enet_device, &ip_data));

sock = socket(PF_INET, SOCK_DGRAM, 0);

error = bind(sock, &local_sin, sizeof(local_sin));



count = sendto(sock, my_TXbuffer, i, 0, &remote_sin, sizeof(sockaddr_in));

count = recvfrom(sock, my_RXbuffer, 256, 0, &remote_sin, &remote_len);    



If not, what recources do I have to free up in my exit handler? RTCS? Sockets? Bind?


Message Edited by CarlFST60L on 2010-01-31 04:23 AM