⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientmessage_investcorp.java

📁 用java编写的c/s结构的网络社区
💻 JAVA
字号:
package client;
import java.io.*;
import java.sql.*;
public class ClientMessage_InvestCorp
{
	void UpdateInfo(DataOutputStream dos,DataInputStream dis,String strMeg,int kind) throws IOException
	{
		byte [] data=new byte[1024];
		if (kind==1) 
		{
				
				dos.writeInt(17);//任务种类
				dis.read(data);
				dos.write(strMeg.getBytes());//ID
		}
		if(kind==2)
		{
			dos.writeInt(18);//该公司最新投资情况
			dis.read(data);
			dos.write(strMeg.getBytes());//ID
		}
		if(kind==3)
		{
			dos.writeInt(16);//任务种类
			dis.read(data);
			dos.write(strMeg.getBytes("GB2312"));//ID
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -