Talk:Server

From Wikipedia, the free encyclopedia.

Jump to: navigation, search

Contents

Server line of descent

For a discussion of server computing (HW & OS)'s descent from mini vs microcomputers, see Talk:Minicomputer. --Wernher 02:25, 5 Jul 2004 (UTC)

Readability

The article may be more readable if it is clearly broken up into sections for hardware, OS, application, and X. Right now, people who aren't experienced techies would probably have trouble understanding it. I could probably handle most of this myself, but I am not familiar enough with X Windows to move or change any of it. May make changes later anyway if no one else does though. Endless

Sample code

I removed the following sample code because it seemed a bit extraneous for the article. cprompt

Example of Very Simple Java Server

This Java program basically waits for a connection on port 21; when it gets a connection from an FTP or from a telnet client the server does its thing.

import java.io.*;
import java.net.*;
public class YorickServer
{
   private static PrintWriter out;
   public static void main(String[] args)
   {
       try
       {
           ServerSocket serverSocket = new ServerSocket(21);
           Socket incomingClient = serverSocket.accept();
           BufferedReader in = new BufferedReader(new InputStreamReader(incomingClient.getInputStream()));
           out = new PrintWriter(incomingClient.getOutputStream(), true);
           out.println("Welcome to the Hello Translation!");
           out.println("QUIT to exit the translator");
           while (processCommand(in.readLine()));
           
           incomingClient.close();
       }
       catch (Exception e)
       {
           e.printStackTrace();
       }
   }
   private static boolean processCommand(String command)
   {
       if (command.equals("QUIT"))
       {
           out.println("Bye!");
           return false;
       }
       else if (command.equals("ENG"))
       {
           out.println("Hello");       
       }
       else if (command.equals("FRE"))
       {
           out.println("Bonjour");       
       }
       else if (command.equals("SPA"))
       {
           out.println("Hola");       
       }
       else
       {
           out.println("Error. Language not supported.");       
       }
       return true;
   }
}

Server log is both an orphan and deadend page. Christopherlin 02:48, 17 May 2004 (UTC)

X-Internet

Does anyone know what the X-Internet link refers to? No other page has a similar link [1] and a google search only pulls up wikipedia or sites that mirror wikipedia content. AlistairMcMillan 21:07, 30 Sep 2004 (UTC)

Readibility x 2

The Wikipedia:lead section needs improving quite a bit. Any suggestions? - Ta bu shi da yu 03:51, 30 Nov 2004 (UTC)

Multi-threding

Is multi-threading in the OS really needed for servers?


Definition of Server

There are many software and other things that "... carries out some task ...". The thing that makes it to a server is that a server waits until one or more client sends a query to him. The server is the active and the client is the passive part of this form of communication. There are other forms of communications between software, ex peer-to-peer. The short Example of Very Simple Java Server above is a good example of a server.

Okay, say what you just said in understandable, grammatical, correct English language, and I won't revert it again. --Schapel 05:09, 6 Jun 2005 (UTC)

Server hardware

The "Server hardware" section currently says that "The X-Internet, Web Services, and Microsoft's .NET initiative all work to make even the smallest system a server." This sentence doesn't really make sense to me, though. It's not as if any of these initiatives do anything to make it easier for small systems to be servers. In fact, it could be argued that they make it harder, since they already require an IP stack, which is enough for a device to act as a server, and then add to that complexity.

Could someone please explain to me what this sentence really means and why it makes sense? Otherwise, I will delete it. --Dolda2000 20:44, 7 October 2005 (UTC)

Personal tools