The steps of the Loop network server programming are:
[url]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7 this.alt= ' Click here to open new windownctrl+ Mouse wheel to zoom in/out ';} ' Onmousewheel= "return imgzoom (this);" > [/URL]
This server model is a typical cyclic service, if not with multiple process/threading technology, this service throughput is limited, we can see that if the previous connection service data is not sent and received after the connection cannot be handled. So there is generally a lot of process technology, a new connection to enable a new process to deal with, and listening to the socket to continue listening.
Java code
public Boolean getprocess () {
Boolean flag=false;
try{
process p = runtime.getruntime (). EXEC ("cmd /C &N Bsp Tasklist ");
bytearrayoutputstream baos = new bytearrayoutputstream ();
inputstream os = p.getinputstream ();
byte b[] = new byte[256];
while (Os.read (b) > 0)
Baos.write (b);
string s = baos.tostring ();
//System.out.println (s);
if (S.indexof ("Besttone.exe") >=0) {
System.out.println ("yes");
Flag=true;
}
else{
System.out.println ("no");
Flag=false;
}
}catch (java.io.ioexception IoE) {
}
return flag;
}