Supparerk Saikaew

How to disconnect ?

Discussion created by Supparerk Saikaew on Aug 7, 2006
Latest reply on Aug 14, 2006 by Supparerk Saikaew
Hi all
I use NE64_Vend_openTCP.
I initial follow code below.
 
Code:
void tcp_x_init(void){    WriteToSCI1("Initializing TCP server application. \r\n");    tcp_soch = tcp_getsocket(TCP_TYPE_CLIENT, TCP_TOS_NORMAL, TCP_DEF_TOUT, tcp_control_panel_eventlistener);    if( tcp_soch < 0 )    {            WriteToSCI1("TCP server unable to get socket. Resetting!!!\r\n");            RESET_SYSTEM();    }else{      WriteToSCI1("TCP Get Socket Client Type!!!\r\n");    }    (void)tcp_connect(tcp_soch,0xC0A800C7,2002,TCP_PORT+2);}
 
After that.
I will disconnect.
Which fuction for disconnect form tcp.?
How to do it.?
 
Sorry.I just learning TCP stack.
 
Thank you
M.X

Outcomes