
get an java socket example,I want to try xmlSocket in flash.post here for study.Server:import java.io.*;import java.net.*;public class SingleServer{public static void main(String args[]){try{ServerSocket serverObj=null;try{serverObj=new ServerSocket(3000);}catch(Exception e){System.out.println("Sorry,can not listen to"+e);}Socket clientObj=null;try{clientObj=serverObj.accept();}catch(Exception e){System.out.println("Error server:"+e);}String lineStr;InputStreamReader streamObj1=new InputStreamReader(clientObj.getInputStream());BufferedReader buffObj1=new BufferedReader(streamObj1);PrintWriter outObj=new PrintWriter(clientObj.getOutputStream());InputStreamReader streamObj2=new InputStreamReader(System.in);BufferedReader buffObj2=new BufferedReader(streamObj2);System.out.println("Client:"+……