《上海大学计算机网络实验报告二》由会员分享,可在线阅读,更多相关《上海大学计算机网络实验报告二(3页珍藏版)》请在金锄头文库上搜索。
1、为了适应公司新战略的发展,保障停车场安保新项目的正常、顺利开展,特制定安保从业人员的业务技能及个人素质的培训计划上海大学计算机网络实验报告二网络与通信课程实验报告实验2:Socket通信编程附件:系统概述:运行环境、编译、使用方法、实现环境、程序文件列表等;运行环境:Windows7系统下的编译:C#使用方法:为一般窗口程序,双击即可实现环境:MicrosoftVisioStudio程序文件列表:主要数据结构;TCP服务端:publicpartialclassTcpServerForm:FormprivateSocket_server;privateSocket_client;privateb
2、yte_receiveData=newbyte1024;privatestring_username;privatestring_password;privatebool_needPasswordl;privatebool_passwordWrong;publicTcpServerForm()privatevoidTcpReceiveForm_Load(objectsender,EventArgse)privatevoidbtnListen_Click(objectsender,EventArgse)privatevoidbtnDisconnect_Click(objectsender,Eve
3、ntArgse)voidAcceptedConnection(IAsyncResultiar)voidReceivedData(IAsyncResultiar)voidSentData(IAsyncResultiar)voidProcessDisconnection()privatevoidtxtUserName_TextChanged(objectsender,EventArgse)privatevoidtxtPassword_TextChanged(objectsender,EventArgse)privatevoidlblUserName_Click(objectsender,Event
4、Argse)privatevoidgnConnectInfo_Enter(objectsender,EventArgse)privatevoidlbMessage_SelectedIndexChanged(objectsender,EventArgse)privatevoidlbNativeIP_SelectedIndexChanged(objectsender,EventArgse)privatevoidlbConnectLog_SelectedIndexChanged(objectsender,EventArgse)TCP客户端:publicpartialclassTcpClientForm:FormSocket_client;byte_receivedData=newbyte1024;publicTcpClientForm()privatevoidbtnConnect_Click(objectsender,EventArgse)网络与通信课程实验报告实验1:网络命令与网络工具使用实验网络与通信课程实验报告实验三:数据包结构分析目的-通过该培训员工可对保安行业有初步了解,并感受到安保行业的发展的巨大潜力,可提升其的专业水平,并确保其在这个行业的安全感。