Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

recv Problems!

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif

Hi, i am a c/c++ programmer, sorry but i don&#39;t know nothing about fpga programming but i have to estabilish a connection whith an fpga which does the server side.

I have a great problem: standard socket blocking recv functions in c return 0 only if the connection is closed by the remote side.

I&#39;ve noticed that often the fpga makes my recv function returns with 0 value even if non one forces the disconnection.

Does someone could exlpain it?

Have i to use different functions?

Thanks to all (even for the patience)!!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Please someone help me i&#39;m going to get mad!

    I need an example of C code about receiveng data from an fpga via socket to understand why my recv doesn&#39;t work correctly....

    I know that probably this is a stupid thing for you but it won&#39;t work!

    Sorry and Thanks again! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wacko.gif