LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-22-2002, 03:27 PM   #1
udayashankark
LQ Newbie
 
Registered: Dec 2002
Posts: 1

Rep: Reputation: 0
Unhappy Problem with broadcasting





I'm having a problem with broadcasting. I create a socket, make it non blocking ( ioctl ) ,enable broadcasting and bind it to a client port ( 27010 ). On the server side I do the same but bind to a different port ( 27011 ).

As per my design when the client broadcasts ( using destination address as 255.255.255.255 ) any server running on the sub net should receive the packet.

This is working fine if both the client and server are running on localhost ( 127.0.0.1 ) but on the subnet ( 192.168.1.X ) it dosen't seem to be work. My eth0 has been configured to mask 255.255.255.0 which netcinfig assigns by default.

BTW what do you mean by MTU? I even tried reducing packet size to less than 1500 but to no avail.

i'm a newbie in network programming and am doing a project using UDP and broadcasting. My deadline is fast approaching.

Thanks in advance:
Uday
 
Old 12-23-2002, 12:06 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
:\\ Moderator's Note //: Moved to Programming Forum...
 
  


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
Stop ypbind from broadcasting? sancho Linux - Networking 1 10-19-2005 09:22 AM
broadcasting live radio on linux rezapci Linux - General 1 07-07-2005 02:17 AM
broadcasting DHCP_REQUEST aikempshall Slackware 3 05-18-2004 08:27 AM
why broadcasting rate is low? kanth Linux - Wireless Networking 0 02-10-2004 08:04 AM
Broadcasting question/problem johnrule Linux - Networking 4 01-26-2004 08:39 AM

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

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration