자바 #채팅 #1 자바Network (TCP) TcpMultiChatClient (멀티채팅) package kr.or.ddit.basic.tcp; import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.Socket; import java.util.Scanner; public class TcpMultiChatClient { public static void main(String[] args) { new TcpMultiChatClient().clientStart(); } private void clientStart() { Socket socket = null; try { socket = new Socket("localhost", 7777); //Socket객체를 생성하고 서버에 접속하기 System.out.pr.. 2023. 6. 30. 이전 1 다음