资源描述:
《java网络通信毕业设计格式(java network communication graduation design format)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、java网络通信毕业设计格式(Javanetworkcommunicationgraduationdesignformat)JAVAnetworkcommunicationprocedure:1.summaryandkeywordsThispaperdescribestheuseofJAVAprogramminglanguagetowritenetworkcommunicationprogramsbasedonclient/serverapplications,anddiscussesSOCKET
2、mechanisms,inputandoutputstreams,andprogramimplementationcode.KeywordsJAVA,network,SOCKET,APPLET2.directoryThefirstchapterisintroductionThesecondchapteristheresearchstatusanddesigngoalsSeveralkeyproblemstobesolvedinthethirdchapterThefourthchapteristhe
3、systemstructureandmodelThefifthchapter,systemimplementationtechnologyThesixthchapterisperformancetestandanalysisTheseventhchapterisconclusion3.textThefirstchapterisintroduction1.1,theresearchsignificanceofthistopicUsingJavatorealizenetworkcommunicatio
4、n,andquicklyrealizethetransmissionofinformation,throughtheguaranteeofTCP/IPprotocol,establishtheconnectionbetweenclientandserver(c/s),thatistorealizethetransmissionofinformation.Thesecondchapteristheresearchstatusanddesigngoals2.1,thecharacteristicsan
5、dadvantagesanddisadvantagesofsimilarresearchtopicsareanalyzedBycomparingthesourcecodeoftheserviceprogramandtheclientprogram,thatis,the:Importjava.net.*;Importjava.io.*;ClassKKState{Private,static,final,int,WAITING=0;Private,static,final,int,SENTKNOCKK
6、NOCK=1;Private,static,final,int,SENTCLUE=2;Private,static,final,int,ANOTHER=3;Private,static,final,int,NUMJOKES=5;Privateintstate=WAITING;PrivateintcurrentJoke=0;PrivateStringclues={,"Tumip","Little,Old,Lady","Atch","Who","Who"};Private,Stringanswers=
7、{,Turnip,the,heat,it',s,cold,in,here..,"I,didn,t,know,you,could,Yodel...","Blessyou!","Is,there,an,owl,in,here","Is,there,an,echo,in,here"};StringprocessInput(String,theInput){StringtheOutput=null;If(state==WAITING){TheOutput="Knock,Knock!";State=SENT
8、KNOCKKNOCK;}else,if(state==SENTKNOCKKNOCK){If(theInput.equalsIgnoreCase(`Who',s,there')){TheOutput=clues[currentJoke];State=SENTCLUE;}else{TheOutput='You',re,supposed,to,say,Who,s,there,``,Try,again.Knock,Knock,'.';}}elseif(state==SENTCLUE){I