LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2007, 06:05 AM   #1
ggeorgak
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
wireless card udp sendto() question


I've a wireless card installed on a gentoo laptop which works fine on acx drivers. I've forced the wireless router to operate on 11Mbps so as the card. The problem I have is that using a udp socket and trying to send 1000 packets of 1500 bytes size(MTU and in the 1500 bytes I've included the IP header so no fragmentation on IP layer) there is a strange delay. Meaning that if the first packet is sent at time 0 the last one is sent 4 seconds later! This problem does not appear running the same code on my desktop computer but on an ethernet interface. What could be the cause of this delay?
 
Old 02-11-2007, 10:26 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It needs investigation and look into the code, but mu guess is that you fill system buffers and then need to wait until there's free space.

To see if it's true
1) Monitor the traffic you send. See what is the delay between the messages.
2) Show (print) the codes you get from the system calls. You may be getting EAGAIN or such from sendto().
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipw2100 wireless card question Fred_G Fedora 2 05-03-2006 10:23 PM
Wireless Card Config Question alex101 Linux - Wireless Networking 1 05-25-2004 01:47 PM
Wireless Card Question! blmartin777 Linux - Wireless Networking 2 05-10-2004 02:34 PM
A question about a Linksys Wireless card jroks Linux - Wireless Networking 5 08-14-2003 07:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration