I have fixed the problem. It seems that my encoding job has
destroyed the file descriptor session. I call the fdCloseSession and
fdOpenSession as follow.
fdCloseSession( TaskSelf() );
outputsize=encoder_main(pyuv,yuvsize,outputbuf);
fdOpenSession( TaskSelf() );
then i can create the socket connection as normal.
--- In code-comp@code..., "ee_glove" <ee_glove@y...> wrote:
> dear all
> I got a network problem when doing some image encoding job on
DM642EVM.
>
> When doing nothing on the yuv data, I can download my yuv data
through
> the ethernet port from my PC to the EVM board and
send it back to
my
> PC,the socket program runs so well. Howeverif i
have done the
h.264
> encoding job on the downloaded data, i can't
even create a socket
> structure,the function socket() and connect() both return the
value -1.
>
> and I have tried to call fdErrorto get the error infomation of
> socket()and connect(), the function runs but i don't know where to
see
> the information in CCS.
>
> help plz
>
> thank u all