Skip to content

Commit bc04768

Browse files
committed
update md
1 parent cc7982e commit bc04768

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
# custom_websocket_client
1+
# custom_websocket_client
2+
3+
## 소개
4+
`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 빌드**
16+
```bash
17+
mkdir build
18+
cd build
19+
cmake ..
20+
cmake --build .
21+
```
22+
23+
## 실행 방법
24+
빌드 후 생성된 실행 파일(`ws_client`)을 사용합니다.
25+
26+
```bash
27+
./ws_client
28+
```
29+
30+
프로그램 실행 후 메시지를 입력하면 서버로 전송되며, 서버로부터 수신된 메시지는 콘솔에 출력됩니다. 종료하려면 `exit`을 입력하세요.
31+
32+
## 의존성
33+
- [IXWebSocket](https://github.com/machinezone/IXWebSocket)
34+
- C++17 이상
35+
- CMake 3.10 이상
36+
- (Linux) OpenSSL, pthread 등
37+
38+
## 라이선스
39+
MIT License (LICENSE 파일 참고)

0 commit comments

Comments
 (0)