Page 908 - 3-3
P. 908
OFFWORK // 퇴근
};
}
/* Packet structure */
// 일반 패킷 구조체
typedef struct {
char name[NAMESIZE + 1];
char status;
} packetCommon;
// 로그인 패킷 구조체
typedef struct {
char id[IDSIZE + 1];
char password[PWSIZE + 1];
} packetLogin;
// 로그인 성공 구조체
// 로그인 실패는 0(zero) 만 전송하면 되므로 구조체를 만들 필요가 없다.
typedef struct {
char flag;
char name[NAMESIZE + 1];
} packetLoginSuccess;
/*Message Status*/
const int CLOSE = 0;
#endif
[ Handler.h ]
#ifndef __SUNWOO_HANDLER_H
#define __SUNWOO_HANDLER_H
#include <iostream>
#include <cstdio>
#include <cstdio>
#include <cstring>
// MySQL Header
#include <mysql_connection.h>
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
#include <cppconn/resultset.h>
- 908 -