Hello,

I observed some thing really surprised me-
if i put a 10000 microsecond sleep between consecutive sendto() then
it sends any no of packets packets continuously.

while (test_time <=180000.0) //Test duration, In  millisecond
{
        bzero (buffer, 50);
        strcpy(buffer, "hello server - xenomai");
        n = sendto (sockfd, buffer, 50, 0, (struct sockaddr *) &serv_addr,
(socklen_t) sizeof (serv_addr));
        usleep (10000); 
        if ( n < 0 )
        {
                perror ("ERROR, Sending Failed....\n");
                exit (0);
        }
}//end of while

--but if i dont give the usleep(), it sends only 16 packets. More over
if I use usleep(1000), then also after sending some messages the
program exits giving "ERROR, Sending Failed.... No buffer space
available".

Saiful


On 5/3/07, Jan Kiszka <[EMAIL PROTECTED]> wrote:
> Saiful Khan wrote:
> > Hello,
> >
> > I have a very simple client running on xenomai+rtnet, whish is simply
> > sending 50 byte message continuously to server and the server is
> > running on other linux system which is simply continuously receiving
> > it printing. RTmac/TDMA is active. rtping works fine.
>
> For more than 16 messages?
>
> >
> > But the client can able to send (sendto()) only 16 messages to server then 
> > it
> > gives error: "No buffer space available".
> >
> > can you please tell me whats the reason.
>
> Ok, this looks a bit more tricky. Please check /proc/xenomai/irq during
> runtime of your test if there is the interrupt counter related to your
> RT-NIC driver (which driver, BTW?) is increasing. If it is not, your
> buffers get sent but will not return to the socket pool, thus you run
> into that error.
>
> Jan
>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to