首页>代码>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;
    }
}
最近下载更多
CL200228  LV4 2023年5月4日
oyonogul  LV1 2022年11月21日
youwuzuichen  LV10 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日
冲啊1211  LV2 2021年6月19日
最近浏览更多
krispeng  LV6 4月15日
lalalla159  LV3 2023年12月2日
Sutnuf 2023年11月27日
暂无贡献等级
13161895  LV1 2023年7月4日
2017143155  LV12 2023年6月24日
链路预测 2023年6月19日
暂无贡献等级
17683946472  LV9 2023年6月8日
CL200228  LV4 2023年5月4日
fewfsdaf  LV4 2023年4月18日
臧家旺  LV3 2023年3月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友