This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCPNet Socket Connection Issue

Greetings,

I am using the LPC2468 and TCPNet.

I have created a socket like so:

tcp_sock = tcp_get_sockettcp_get_sockettcp_get_socket (TCP_TYPE_CLIENT_SERVER, 0, 120, tcp_callback);

   if (tcp_sock != 0)
   {
      /* Start listening on TCP port 80 */
      tcp_listen (tcp_sock, 45);
        }

In my main function I have teh following code:

tcp_init(); //Create and Open Socket For Listening
init_TcpNet( ); //Initialize TCP Stack

while(TRUE)
{
     timer_poll();
     main_TcpNet();
}

Stepping through the code reveals that the socket is being created successfully, with a return value of 1. It appears as if the socket is being opened for listening properly as well.

However, when I connect up my client application, and attempt to connect on that port, the debug output says that there are no free sockets.

I have established in the NetConfig.C that there should be a max of 5, and everythign else looks ok.

Am I missing something critical? Any Help would be appreciated.

Thanks

Doug