CS(7)
-
[컴비] 정리
1. Introduction 1) Pixel: picture element - the smalest unit of information that make up a picture - each pixel may have multiple values (except gray scale) - the location of a pixel is represented by 2D coordinates 2) FPS (Frame per second) - images are taken with very short interval (normally 33ms) 3) Intensity level (L = 2(k제곱)) *normally L = 256 4) Pixel resolution: the number of pixels in a..
2021.10.21 -
[DB] 00. Administrivia
1. motivation Database : organized collection(조직화된 모음) of inter-related(상호 관련된) data that models some aspect of the real-world(실제 세계의 일부 측면을 본떠서 만든) - databases are one of the core components(핵심 구성요소) of most computer applications Ex) universities, financial market, enterprise information, airlins, web services, telecommuication etc.. In the early data, database applications were built directly ..
2021.03.13 -
[socket programming] 간단한 webserver 구현
webserver.c #include #include #include #include #include #include #include #include void error_handling(char *message); int main(int argc, char *argv[]){ int sock_serv; int sock_clnt; int port; struct sockaddr_in addr_serv; struct sockaddr_in addr_clnt; char buffer[1024]; char path[1024]; //path 경로 설정 char html[1024]; if(argc!=2){ printf("Usage : %s \n", argv[0]); exit(1); } port = atoi(argv[1])..
2020.12.11 -
[socket programming] udp를 이용한 파일 전송 프로그램
server 코드 (UDPserver.c) #include #include #include #include #include #include #include #include #define BUFSIZE 1024 void error_handling(char *message); int main(int argc, char **argv){ FILE* file; int sd; char file_name[BUFSIZE]; char buf[BUFSIZE]; int buf_len; int filename_len; struct sockaddr_in serv_addr; struct sockaddr_in clnt_addr; int clnt_addr_size = sizeof(clnt_addr); if(argc!=2){ prin..
2020.12.11 -
[socket programming] tcp 이용한 파일 전송 프로그램
server 코드 (TCPserver.c) #include #include #include #include #include #include #include #include #define BUFSIZE 1024 //#define MAX_PATH 10 void error_handling(char *message); int main(int argc, char **argv) { FILE* file; //파일 int sd; //서버소켓 int cd; //클라이언트소켓 char file_name[BUFSIZE]; char buf[BUFSIZE]; int buf_len; int filename_len; struct sockaddr_in serv_addr; struct sockaddr_in clnt_addr; int ..
2020.12.11