LinuxQuestions.org
Help answer threads with 0 replies.
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 05-03-2003, 07:35 AM   #1
deepagodkhindi
LQ Newbie
 
Registered: Apr 2003
Posts: 7

Rep: Reputation: 0
Exclamation round robin for servers


Hello

i wanted to know how to go about using "Round Robin Algorithm" for mail servers. I mean how to go about implementing the same.

Thanking you,

Deepa
 
Old 05-05-2003, 05:56 AM   #2
yrraja
Member
 
Registered: Sep 2002
Distribution: RH, FC, Ubuntu, Solaris, AIX
Posts: 114

Rep: Reputation: 15
Could you further elaborate your problem!

What i understand from your question is that you have an application that connects to mail servers and gets data. In case of multiple servers you want to use Round Robin Algo to poll the mail servers for data.

If this is so than you just need to understand the functionality of Round Robin and implement it.

Yaser
 
Old 05-05-2003, 10:54 AM   #3
deepagodkhindi
LQ Newbie
 
Registered: Apr 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Hello,

I've understood the functionality of round-robin algorithm. But, the problem is, since i'm new to linux & it's programming concepts, i'm not understanding how to implement it. i.e. whether i should use "c socket programming" or normal 'c' program will work. Kindly suggest.

Thanking you,
Deepa
 
Old 05-05-2003, 11:25 PM   #4
yrraja
Member
 
Registered: Sep 2002
Distribution: RH, FC, Ubuntu, Solaris, AIX
Posts: 114

Rep: Reputation: 15
Deepa Round Robin (RR) is just a scheduling algo and it has nothing to do with sockets.. u can use it to schedual anything including the mail servers.

You will implement RR as a simple C module which schedules different dummy tasks. In the next step you will replace these dummy tasks with actual functionality of checking the mail server for new mails.

This is just one way.. if you think it could be useful in yr case then use it..

Yaser
 
Old 05-05-2003, 11:47 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Is what you're really after is some sort
of load-balancing for mail-servers?

Cheers,
Tink
 
Old 05-11-2003, 05:50 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
This appears to be tied in with this thread http://www.linuxquestions.org/questi...threadid=57270

cheers

Jamie...
 
  


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
round robin source code vishamr2000 Linux - Security 3 04-21-2005 07:00 AM
dns round-robin tzkolinux Linux - Networking 1 12-27-2004 03:49 AM
Setting Up DNS Round Robin? Longhair Linux - Networking 0 05-26-2003 01:34 AM
Setting Up DNS Round Robin Longhair Linux - Newbie 0 05-25-2003 12:09 PM
Round Robin DNS Lucsi Linux - Software 1 07-18-2002 04:17 AM

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

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