LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2009, 11:52 AM   #1
bigboss360
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
raw socket programming


Hello,

I am using the write() call to to send data over a raw socket. While running my program, this call returns always the correct data length that are written to the socket even when the network is congested.

I would like to know whether the write() call is a blocking function, or a MAC buffer overflow might happens (frames dropped) even when the write() call returns the correct data lenght writen to the socket.


Thanks by advance
 
Old 10-15-2009, 11:59 AM   #2
favoretti
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
write() is blocking, so if your socket is opened with O_NONBLOCK write will return EAGAIN.
 
Old 10-17-2009, 10:11 AM   #3
bigboss360
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much. That was very useful.
Also, I would appreciate if you have a useful link to network programming.

Again many thanks!
 
  


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
Raw socket programming with C arabindav Programming 17 06-09-2011 12:58 PM
Raw Socket Forwarding robtard Programming 1 05-05-2009 07:34 AM
Raw socket programming homePBX Linux - Networking 6 05-02-2008 01:25 PM
Help with raw socket programming tuxfood Programming 2 07-25-2005 02:17 PM
Socket Raw linuxanswer Programming 1 04-01-2004 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration