monika varshney
Newbie level 5
hello all.....
I am using RCM4000 for the ethernet communication between PC and the kit. I have a .net application on my PC to send data on the ethernet port(of the PC). I have written a code in dynamic C to receive the data from the ethernet port but it is not showing the desired output. I think there is any problem while I am opening the socket. My code for the same is:
tcp_Socket socket;
printf("Waiting for connection...\n");
if(tcp_open(&socket,0,0,PORT,NULL)!=0)
printf("\n socket is open..\n");
else
printf("\n no open socket...\n");
if(!tcp_open(&socket,0,0,PORT,NULL))
printf("\n failed to open....\n");
else while(!sock_established(&socket))
{
if(!tcp_tick(&socket))
{
printf("\n failed to establish...\n");
break;
}}
if(sock_established(&socket))
printf("\n established OK...\n");
It is giving the output as----failed to establish...
The communication between .net application and rabbit apllication is not being established..Is there any missing point while opening the socket....please help me...
I am using RCM4000 for the ethernet communication between PC and the kit. I have a .net application on my PC to send data on the ethernet port(of the PC). I have written a code in dynamic C to receive the data from the ethernet port but it is not showing the desired output. I think there is any problem while I am opening the socket. My code for the same is:
tcp_Socket socket;
printf("Waiting for connection...\n");
if(tcp_open(&socket,0,0,PORT,NULL)!=0)
printf("\n socket is open..\n");
else
printf("\n no open socket...\n");
if(!tcp_open(&socket,0,0,PORT,NULL))
printf("\n failed to open....\n");
else while(!sock_established(&socket))
{
if(!tcp_tick(&socket))
{
printf("\n failed to establish...\n");
break;
}}
if(sock_established(&socket))
printf("\n established OK...\n");
It is giving the output as----failed to establish...
The communication between .net application and rabbit apllication is not being established..Is there any missing point while opening the socket....please help me...