Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-03-2003, 08:35 AM   #1
LQ Newbie
Registered: Apr 2003
Posts: 7

Rep: Reputation: 0
Exclamation round robin for servers


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,

Old 05-05-2003, 06:56 AM   #2
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.

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

Original Poster
Rep: Reputation: 0

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,
Old 05-06-2003, 12:25 AM   #4
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..

Old 05-06-2003, 12:47 AM   #5
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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

Rep: Reputation: 46
This appears to be tied in with this thread




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 08:00 AM
dns round-robin tzkolinux Linux - Networking 1 12-27-2004 04:49 AM
Setting Up DNS Round Robin? Longhair Linux - Networking 0 05-26-2003 02:34 AM
Setting Up DNS Round Robin Longhair Linux - Newbie 0 05-25-2003 01:09 PM
Round Robin DNS Lucsi Linux - Software 1 07-18-2002 05:17 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:37 PM.

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