// http://www.serie3.info/ CSS Help: Mészáros Róbert -> http://www.perspectived.com/ Version: 1.0 Copyright: Feel free to redistribute the script/modify it, as long as you leave my infos at the top. -------------------------------------------------------------------------- */ (function($){ $.fn.s3Slider = function(vars) { var element = this; var timeOut = (vars.timeOut != undefined) ? vars.timeOut : 4000; var current = null; var timeOutFn = null; var faderStat = true; var mOver = false; var items = $("#" + element[0].id + "Content ." + element[0].id + "Image"); var itemsSpan = $("#" + element[0].id + "Content ." + element[0].id + "Image span"); items.each(function(i) { $(items[i]).mouseover(function() { mOver = true; }); $(items[i]).mouseout(function() { mOver = false; fadeElement(true); }); }); var fadeElement = function(isMouseOut) { var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut; thisTimeOut = (faderStat) ? 10 : thisTimeOut; if(items.length > 0) { timeOutFn = setTimeout(makeSlider, thisTimeOut); } else { console.log("Poof.."); } } var makeSlider = function() { current = (current != null) ? current : items[(items.length-1)]; var currNo = jQuery.inArray(current, items) + 1 currNo = (currNo == items.length) ? 0 : (currNo - 1); var newMargin = $(element).width() * currNo; if(faderStat == true) { if(!mOver) { $(items[currNo]).fadeIn((timeOut/6), function() { if($(itemsSpan[currNo]).css('bottom') == 0) { $(itemsSpan[currNo]).slideUp((timeOut/6), function() { faderStat = false; current = items[currNo]; if(!mOver) { fadeElement(false); } }); } else { $(itemsSpan[currNo]).slideDown((timeOut/6), function() { faderStat = false; current = items[currNo]; if(!mOver) { fadeElement(false); } }); } }); } } else { if(!mOver) { if($(itemsSpan[currNo]).css('bottom') == 0) { $(itemsSpan[currNo]).slideDown((timeOut/6), function() { $(items[currNo]).fadeOut((timeOut/6), function() { faderStat = true; current = items[(currNo+1)]; if(!mOver) { fadeElement(false); } }); }); } else { $(itemsSpan[currNo]).slideUp((timeOut/6), function() { $(items[currNo]).fadeOut((timeOut/6), function() { faderStat = true; current = items[(currNo+1)]; if(!mOver) { fadeElement(false); } }); }); } } } } makeSlider(); }; })(jQuery); //]]>

Pages

Subscribe:

Ads 468x60px

Unordered List

Most Popular

Template Information

Sponsor

Test Footer 2

Flickr Images

About us

Video Of Day

Saturday, 20 December 2014

Peer to Peer Network Architecture

Peer to Peer Network Architecture          
 

 Peer to Peer Network Architecture

               Peer to Peer network is decentralized communication architecture.in this model all the devices are have the same capabilities.In Client-Server architecture client will send the service request and the server will reply back for those request. 

                     But in this architecture the device who want the data it will act as a client and it will send the service request to the destination device who have data.The device who provides the data it will act as a server and it will respond  to that service  request to the device who made the that request.that is a device act as a server/client.
                    for example take above picture.in this all are same capability devices.in this laptop 1 wants to get the some data from laptop 3.Then the process:
            Laptop1= send the request to laptop 3.
(i want to communicate with you. are you ready for communication with me.)
then now laptop1 act as a client.
           laptop3=Reply to request to laptop 1.
(yes,am ready to communicate with you.tell me how can i help you.)
now laptop 3 act as a server.   
                   This is the basic process of network communication.i hope you understood about this peer to peer network.it provides the anonymized routing of network traffic.
                Peer to peer network architecture is commonly used in smaller network such as home networks or less then ten computers involved and where strong security is not required.In this network all devices are in same status.hence the term 'PEER'.
         

0 comments:

Post a Comment