首页>代码>java swing通过socket模拟多人聊天>/chat/src/chatroom/ClientBean.java
package chatroom;
import java.io.*;
import java.net.Socket;

public class ClientBean{
    private String clientName;
    private PrintWriter out;
    private Socket s;


    public ClientBean(String clientName,PrintWriter out,Socket s) {
        this.clientName=clientName;
        this.out=out;
        this.s=s;
    }

    public PrintWriter getOut() {
        return out;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public void setOut(PrintWriter out) {
        this.out = out;
    }

    public void setS(Socket s) {
        this.s = s;
    }

    public String getClientName() {
        return clientName;
    }

    public Socket getS() {
        return s;
    }

    public String toString()
    {
        return clientName;
    }
}
最近下载更多
1690356080  LV38 2024年4月23日
CL200228  LV4 2023年5月4日
oyonogul  LV1 2022年11月21日
youwuzuichen  LV11 2022年9月8日
huevnn  LV5 2022年6月16日
bearloadprogress  LV7 2022年5月12日
liys1234  LV9 2022年4月22日
装了磁铁的果冻  LV1 2022年1月7日
9843637  LV9 2021年12月14日
tttyyyytt  LV2 2021年6月22日
最近浏览更多
微信网友_7298640909209600  LV2 2024年12月22日
qwertasdfgkwuejwjwjw  LV1 2024年6月27日
周鸣郝  LV2 2024年5月26日
1690356080  LV38 2024年4月23日
krispeng  LV14 2024年4月15日
lalalla159  LV3 2023年12月2日
Sutnuf 2023年11月27日
暂无贡献等级
13161895  LV1 2023年7月4日
2017143155  LV12 2023年6月24日
链路预测 2023年6月19日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友