Skip to content
Snippets Groups Projects
Commit 00d60b2a authored by 이 화진's avatar 이 화진
Browse files

Add new file

parent d367df2c
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#define MAX_USER_CNT 2
#define MAX_USER_NAME 10
#define MAX_CHAT_LENGTH 255
int isServerConn = -1;
int shmid = 0;
void *shmaddr = NULL;
struct shmid_ds info;
typedef struct UserData
{
int pid;
char name[MAX_USER_NAME];
}UserData;
typedef struct SharedData
{
int pid;
UserData user[MAX_USER_CNT];
}SharedData;
typedef struct MessageData
{
int send_pid;
char content[MAX_CHAT_LENGTH];
}MsgData;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment