You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`custom_websocket_client`는 [IXWebSocket](https://github.com/machinezone/IXWebSocket) 라이브러리를 기반으로 제작된 C++ 웹소켓 클라이언트 예제입니다. 간단한 코드로 웹소켓 서버와의 연결, 메시지 송수신, 쓰레드 안전 송신 등을 구현할 수 있습니다.
7
+
8
+
## 주요 기능
9
+
- 웹소켓 서버 연결 및 해제
10
+
- 텍스트/바이너리 메시지 송수신
11
+
- 쓰레드 안전한 메시지 전송
12
+
- 연결 상태 및 오류 출력
13
+
14
+
## 빌드 방법
15
+
1.**IXWebSocket 라이브러리 설치**
16
+
- vcpkg, 소스 빌드 등으로 [IXWebSocket](https://github.com/machinezone/IXWebSocket)을 설치하세요.
17
+
2.**CMake 빌드**
18
+
```bash
19
+
mkdir build
20
+
cd build
21
+
cmake ..
22
+
cmake --build .
23
+
```
24
+
25
+
## 실행 방법
26
+
빌드 후 생성된 실행 파일(`ws_client`)을 사용합니다.
27
+
28
+
```bash
29
+
./ws_client
30
+
```
31
+
32
+
프로그램 실행 후 메시지를 입력하면 서버로 전송되며, 서버로부터 수신된 메시지는 콘솔에 출력됩니다. 종료하려면 `exit`을 입력하세요.
`custom_websocket_client`는 [IXWebSocket](https://github.com/machinezone/IXWebSocket) 라이브러리를 기반으로 제작된 C++ 웹소켓 클라이언트 예제입니다. 간단한 코드로 웹소켓 서버와의 연결, 메시지 송수신, 쓰레드 안전 송신 등을 구현할 수 있습니다.
5
-
6
-
## 주요 기능
7
-
- 웹소켓 서버 연결 및 해제
8
-
- 텍스트/바이너리 메시지 송수신
9
-
- 쓰레드 안전한 메시지 전송
10
-
- 연결 상태 및 오류 출력
11
-
12
-
## 빌드 방법
13
-
1.**IXWebSocket 라이브러리 설치**
14
-
- vcpkg, 소스 빌드 등으로 [IXWebSocket](https://github.com/machinezone/IXWebSocket)을 설치하세요.
15
-
2.**CMake 빌드**
3
+
> [Korean](README.ko.md)
4
+
5
+
## Introduction
6
+
`custom_websocket_client` is a C++ WebSocket client example based on the [IXWebSocket](https://github.com/machinezone/IXWebSocket) library. This project demonstrates how to implement connections with a WebSocket server, send and receive messages, and ensure thread-safe transmissions with simple code.
7
+
8
+
## Key Features
9
+
- Connect and disconnect from WebSocket servers
10
+
- Send and receive text/binary messages
11
+
- Thread-safe message transmission
12
+
- Connection status and error reporting
13
+
14
+
## Build Instructions
15
+
1.**Install IXWebSocket Library**
16
+
- Install [IXWebSocket](https://github.com/machinezone/IXWebSocket) using vcpkg, source build, or other methods.
17
+
2.**CMake Build**
16
18
```bash
17
19
mkdir build
18
20
cd build
19
21
cmake ..
20
22
cmake --build .
21
23
```
22
24
23
-
## 실행 방법
24
-
빌드 후 생성된 실행 파일(`ws_client`)을 사용합니다.
25
+
## Usage
26
+
Run the generated executable (`ws_client`) after building.
25
27
26
28
```bash
27
29
./ws_client
28
30
```
29
31
30
-
프로그램 실행 후 메시지를 입력하면 서버로 전송되며, 서버로부터 수신된 메시지는 콘솔에 출력됩니다. 종료하려면 `exit`을 입력하세요.
32
+
After starting the program, enter a message to send it to the server. Messages received from the server will be displayed in the console. Type `exit` to terminate the program.
0 commit comments