Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

problem with reading ethernet port of RCM4000

Status
Not open for further replies.

monika varshney

Newbie level 5
Joined
Apr 12, 2008
Messages
10
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
1,373
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...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top