Reasons for TCP client connection Error while opening a sock

hi,

first time i got ip from wip_bearer and tryed to open TCP client socket when server port listen mode it successfully opened socket. but next i disconnect the server port and again try reconnect the server port in listed mode but socket not opened.

i also printed the return values of wip_TCPClientCreateOpts it shows NULL, so pls help me out of this problem.

sample:
ch= wip_TCPClientCreateOpts( aIP,uPortNo,(wip_eventHandler_f) evHandler, NULL,
//WIP_COPT_KEEPALIVE, 10,
WIP_COPT_NODELAY, TRUE,
WIP_COPT_SND_BUFSIZE,(u32)TCP_SEND_BUF_SIZE,
WIP_COPT_RCV_BUFSIZE,(u32)TCP_RECV_BUF_SIZE,
WIP_COPT_END);

thank you in advance.

Hi Nagaraju,
how are you checking whether the socket is created or not as the return value of wip_TCPClientCreateOpts shows that the socket has been created.
Also what exactly are you doing? How are you disconnecting the server port?

Regards,
Alex