My Project
Loading...
Searching...
No Matches
ClientInfo Struct Reference

클라이언트 정보를 담는 구조체 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
 

Detailed Description

클라이언트 정보를 담는 구조체

각 클라이언트의 소켓 FD, ID, 채팅방 ID, 사용자명을 포함하고 있으며, 뮤텍스를 관리합니다.

Definition at line 59 of file kernel_chat.h.

Member Data Documentation

◆ client_fd

int ClientInfo::client_fd

클라이언트의 소켓 파일 디스크립터

Definition at line 60 of file kernel_chat.h.

◆ client_id

int ClientInfo::client_id

클라이언트 ID

Definition at line 61 of file kernel_chat.h.

◆ client_mutex

pthread_mutex_t * ClientInfo::client_mutex

클라이언트 별 뮤텍스

Definition at line 64 of file kernel_chat.h.

◆ room_id

int ClientInfo::room_id

클라이언트가 참여한 채팅방 ID

Definition at line 62 of file kernel_chat.h.

◆ username

char ClientInfo::username

클라이언트 사용자명

Definition at line 63 of file kernel_chat.h.


The documentation for this struct was generated from the following files: