java #server #tcp1 자바Network (TCP) TcpServer01 package kr.or.ddit.basic.tcp; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.ServerSocket; import java.net.Socket; public class TcpServer01 { public static void main(String[] args) throws IOException { //TCP소켓 통신을 하기 위해 ServerSocket객체를 생성한다. ServerSocket server = new ServerSocket(7777); System.out.print.. 2023. 6. 30. 이전 1 다음