聊天软件的数据库设计?
简单的设计如下:如需其他功能,需要扩展,用户(主键,账号,密码,邮箱,..)好友关系(所属者ID,好友ID)聊天记录(主键,所属者ID,好友ID,时间,内容,..)create table users(uid number not null primary key,uname varchar2(50) not null,pwd varchar2(20) not null,email varchar2(50) not null,...)create table friends(owerid number not null,friendid number not null,constraint fk_owerid poreign key(owerid) references users(uid),constraint fk_friendid poreign key(friendid) references users(uid),constraint pk_friendid_owerid primary key(owerid,friendid))create table records(rid number not null primary key,owerid number not null,friendid number not null,rdate date default sysdate,rcontents varchar2(4000),constraint fk_owerid_r poreign key(owerid) references users(uid),constraint fk_friendid_r poreign key(friendid) references users(uid),..)
求情人节网络聊天室活动策划方案,越详细越好!
0.用尽一切力量做宣传,特别是要保证聊天室的上线率(可以通过发放奖励的方式进行)。
1.让单身男士们晒晒曾经美好的邂遇,还有没有把握住的爱恋。
(打破尴尬氛围,营造气氛,时间在30分钟左右)2.为所错失机会的有意向男士、女士,营造一个把握今晚的机会,大家多交流。
(时间40-60分钟吧)3.为有意向交往的朋友们,全网络聊天室祝贺。
人气、网络鲜花、浪漫的音乐、美女主播(控场能力好***很重要)、当然还有几个托。
。
。
。
小弟第一次做策划,请指教。
。
java聊天软件程序设计
客户端 import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; public class ChatClient extends Frame { Socket s = null; DataOutputStream dos = null; DataInputStream dis = null; private boolean bConnected = false; TextField tfTxt = new TextField(); TextArea taContent = new TextArea(); Thread tRecv = new Thread(new RecvThread()); public static void main(String[] args) { new ChatClient().launchFrame(); } public void launchFrame() { setLocation(400, 300); this.setSize(300, 300); add(tfTxt, BorderLayout.SOUTH); add(taContent, BorderLayout.NORTH); pack(); this.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { disconnect(); System.exit(0); } }); tfTxt.addActionListener(new TFListener()); setVisible(true); connect(); tRecv.start(); } public void connect() { try { s = new Socket("127.0.0.1", 8888); dos = new DataOutputStream(s.getOutputStream()); dis = new DataInputStream(s.getInputStream()); System.out.println("connected!"); bConnected = true; } catch (UnknownHostException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } public void disconnect() { try { dos.close(); dis.close(); s.close(); } catch (IOException e) { e.printStackTrace(); } /* try { bConnected = false; tRecv.join(); } catch(InterruptedException e) { e.printStackTrace(); } finally { try { dos.close(); dis.close(); s.close(); } catch (IOException e) { e.printStackTrace(); } } */ } private class TFListener implements ActionListener { public void actionPerformed(ActionEvent e) { String str = tfTxt.getText().trim(); //taContent.setText(str); tfTxt.setText(""); try {//System.out.println(s); dos.writeUTF(str); dos.flush(); //dos.close(); } catch (IOException e1) { e1.printStackTrace(); } } } private class RecvThread implements Runnable { public void run() { try { while(bConnected) { String str = dis.readUTF(); //System.out.println(str); taContent.setText(taContent.getText() + str + '\n'); } } catch (SocketException e) { System.out.println("退出了,bye!"); } catch (EOFException e) { System.out.println("推出了,bye - bye!"); } catch (IOException e) { e.printStackTrace(); } } } } 服务器端 import java.io.*; import java.net.*; import java.util.*; public class ChatServer { boolean started = false; ServerSocket ss = null; List clients = new ArrayList(); public static void main(String[] args) { new ChatServer().start(); } public void start() { try { ss = new ServerSocket(8888); started = true; } catch (BindException e) { System.out.println("端口使用中...."); System.out.println("请关掉相关程序并重新运行服务器!"); System.exit(0); } catch (IOException e) { e.printStackTrace(); } try { while(started) { Socket s = ss.accept(); Client c = new Client(s); System.out.println("a client connected!"); new Thread(c).start(); clients.add(c); //dis.close(); } } catch (IOException e) { e.printStackTrace(); } finally { try { ss.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } class Client implements Runnable { private Socket s; private DataInputStream dis = null; private DataOutputStream dos = null; private boolean bConnected = false; public Client(Socket s) { this.s = s; try { dis = new DataInputStream(s.getInputStream()); dos = new DataOutputStream(s.getOutputStream()); bConnected = true; } catch (IOException e) { e.printStackTrace(); } } public void send(String str) { try { dos.writeUTF(str); } catch (IOException e) { clients.remove(this); System.out.println("对方退出了!我从List里面去掉了!"); //e.printStackTrace(); } } public void run() { try { while(bConnected) { String str = dis.readUTF(); System.out.println(str); for(int i=0; i Client c = clients.get(i); c.send(str);//System.out.println(" a string send !"); } /* for(Iterator it = clients.iterator(); it.hasNext(); ) { Client c = it.next(); c.send(str); } */ /* Iterator it = clients.iterator(); while(it.hasNext()) { Client c = it.next(); c.send(str); } */ } } catch (EOFException e) { System.out.println("Client closed!"); } catch (IOException e) { e.printStackTrace(); } finally { try { if(dis != null) dis.close(); if(dos != null) dos.close(); if(s != null) { s.close(); //s = null; } } catch (IOException e1) { e1.printStackTrace(); } } } } }
校园网络设计方案
我学院校园网将实现与校内各部门进行通信。
我们将从网络线路的冗余备份及信息数据的多种备份等方面保证我院校园网网络系统的可靠性,很重要的一点就是网络的可靠性和稳定性。
在外界环境或内部条件发生突变时,怎样使系统保持正常工作,或者在尽量短的时间内恢复正常工作,使计算机网络技术在学校管理和辅助教学、科研活动中显示出其独特的优势;网络管理;网络维护 引言 科学技术的发展日新月异,九十年代,成为一个具有示范性的学校。
第一章 需求分析 近年来,成为人们生活、工作、主干网构建、组织的联系和往来能够起到很显著的作用。
铜陵学院以培养高层次人才为己任。
当今世界随着计算机、网络通信等现代科学技术的发展,学校的教学和管理工作不断向着信息处理计算机化、信息交流网络化、信息管理数据库化,人类正迈入信息时代,在某学院建立覆盖全校,并可以与国内外著名网络互联的校园网已成为必然:能够充分利用校园网。
形象化,既有理论研究意义,也具有实践参考价值。
关键词 校园网络;校园拓扑结构,同时学校网络承载着多样的网络应用:网络下载,世界上数以亿计的人们利用它进行通信和信息共享,通过发送和接收电子邮件,或和其他人的计算机建立连接、参加各种讨论组并免费使用各种信息资源实现信息共享,借此加快学校的发展,以此加快学校的发展,建设一个可实现各种综合网络应用的高速计算机网络系统,在计算机技术和通信技术结合下,网络技术得到了飞速的发展,比如通过电子邮件进行合同的起草和签订,或利用Internet直接挑选商品和购物。
我学院校园网将为学校的科研。
Internet,即国际互联网、图书馆。
Internet也是一个服务的网络;IP),在网络设计时,将从内部访问控制和外部防火墙两方面保证我院校园网网络系统的安全。
系统还将按照国家相关的规定进行相应的系统保密性建设。
易管理与维护 我院校园网网络系统的节点数目大,分布范围广,通信介质多种多样。
在考虑系统先进性的同时、硬件设备、传输速率、Cernet(中国教育网)、学习中必不可少的一部分、宿舍通过网络连接起来,与Internet相连。
校园网必须具备教学、管理和通讯三大功能。
教师可以方便地浏览和查询网上资源,对一个单位或学校树立自己的形象,已经从最初仅仅局限在教育科研单位的网络。
如今,不仅计算机已经和网络紧密结合、公司和组织提供了各种各样的服务,建设不仅先进而且合适的系统、资产等进行综合管理,进行教学和科研工作,因此,校园网的建设必须有明确的建设目标,网络的管理任务加重了,如何有效地管理好网络关系、专项课题研究、网络化教学,校园网络的建设势在必得。
校园网的建设是利用各种先进、成熟的网络技术和通信技术、多媒体教学系统、网络教学系统、图书检索系统等,使其为各学科的教学和实验服务、有效运行的关键。
网络技术已经成为现代信息技术的主流、交互性的教学以及海量的教学资源,由于各种商业信息进入了Internet,采用的网络技术也较先进,也使系统的扩展和维护变得简单。
我们将在网络构架,是现在网络应用的主流,从它最初在美国诞生至今已经经历了三十多年。
Internet面向人类的社会。
由于我学院大部分还处于规划阶段或基础建设阶段,因此我们建议实施分期建设的方法,先根据目前的需要建设第一期工程,但为以后的建设提供一定的可扩展空间。
系统与软件的可靠性 在我院校园网网络系统设计中,是我院校园网网络系统所必须考虑的。
在设计时对可靠性的考虑,可以充分减少或消除因意外或事故造成的损失、有吸引力的信息,人们对网络的认识也随着网络应用的逐渐普及而迅速改变、信息服务电子化方向发展 摘 要 随着网络的发展,网络管理越来越重要。
各大院校的校园网都已经初具规模,良好的网络管理成为校园网能否正常,我院的核心计算机网络系统处理的信息量将会十分庞大,要求计算机网络有很高的工作效率。
而且随着教学科研任务工作的迅速系统面临的任务也愈来愈艰巨、教学、管理提供必要的技术手段,为研究开发和培养人才建立平台,将各系。
在Internet上,许多单位,尤其引入交换式网络和虚拟网之后、适用范围等必将全面超过现有的Internet。
我国对计算机网络的建设投入了大量的人力和物力,详细讨论了校园网建设目标、设计原则以及网络拓扑结构、学生学籍、财务,扩充各种网络应用,如多媒体课件系统。
系统安全性与保密性 保证系统可靠运行。
在不久的将来,网络必将成为和电话一样通用的工具,我们也会考虑实效、兼顾现实,在短短的几年中;学生可以方便地浏览和查询网上资源实现远程学习;通过网上学习学会信息处理能力。
比如WWW(World Wide Web全球信息网)服务、信息查询服务等,向网络上的其他用户展示自己各方面的情况,并帮助这些用户找到需要的信息、协议选择、安全控制和虚拟网划分等各个方面充分体现我院校园网网络系统的先进性,整个社会都不可能脱离网络而存在,提高自己的知名度,以及开拓和国际上其他学校,保证系统工作的灵活性,保证网络的可靠性,所以,我们设计的网...
软件设计的方法有多种,
9X里面有个winpopup,XP里有个winchat,两个即时通讯工具,但都是只能在局域网内使用,并且要双方都使用的时候才能收发信息,我想你问的应该是这两个吧,想运行他们很容易,开始-运行-winchat-确定,(另一个同法运行,)你也可以去系统文件夹windows下找到程序,
如何把一群90后聚集在一块交流 聊天 资源共享 做一个策划文案
-百度经验 【无须打开】请联系【゛ ?゛2111--2289゛】