My Project
|
클라이언트 정보를 담는 구조체 More...
#include <kernel_chat.h>
Public Attributes | |
int | client_fd |
int | client_id |
int | room_id |
char | username [BUFFER_SIZE] |
pthread_mutex_t * | client_mutex |
클라이언트 정보를 담는 구조체
각 클라이언트의 소켓 FD, ID, 채팅방 ID, 사용자명을 포함하고 있으며, 뮤텍스를 관리합니다.
Definition at line 59 of file kernel_chat.h.
int ClientInfo::client_fd |
클라이언트의 소켓 파일 디스크립터
Definition at line 60 of file kernel_chat.h.
int ClientInfo::client_id |
클라이언트 ID
Definition at line 61 of file kernel_chat.h.
pthread_mutex_t * ClientInfo::client_mutex |
클라이언트 별 뮤텍스
Definition at line 64 of file kernel_chat.h.
int ClientInfo::room_id |
클라이언트가 참여한 채팅방 ID
Definition at line 62 of file kernel_chat.h.
char ClientInfo::username |
클라이언트 사용자명
Definition at line 63 of file kernel_chat.h.