CsoApplet1.java
import java.io.*;
import java.util.*;
import java.net.*;
public class CsoPort1{
public static final int port=105;
public static final String host="umslvma.umsl.edu";
public String[] readCso(String who) {
String line[]=new String[50];
int iline=0;
Socket soc=null;
try {
soc = new Socket(host,port);
BufferedReader sin = new BufferedReader(new InputStreamReader(soc.getInputStream()));
PrintWriter sout = new PrintWriter(soc.getOutputStream(),true);
BufferedReader insys = new BufferedReader(new InputStreamReader(System.in));
String holdit="query name="+who;
System.out.println(holdit);
sout.println(holdit);
while(!((holdit=sin.readLine().trim()).equals("200:Ok."))){
// System.out.println(holdit);
line[iline++]=holdit;
}//while
}//try
catch(IOException e) {System.err.println(e);}
try {soc.close();}catch(IOException e2){System.out.println("close error");}
return line;
}//readCSO:
}//class