LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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, 10: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, 09: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



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

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

All times are GMT -5. The time now is 05:41 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