책에 나온 채팅프로그램을 따라 만들어본건데요...컴파일이 안되네요..
어디가 잘못된건지...?
에러내용은 소스코드밑에...
서버..
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<arpa/inet.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<pthread.h>
#define PORT 8888
int clnt_number=0;
i
ncurses를 이용해서 콘솔용 GUI프로그램을 짤려고 생각하고 있습니다.
위키에 있는 how to 문서를 읽어보니 기본은 getch()로 다음 명령이 올때까지 기다리는 것인듯하네요.
그런데, 컨트롤키나 알트키같은 키가 눌렸을때는, getch()가 바로 반환이 되지 않더군요.
알트+A 라면 A까지 눌러야지 그때서야 두개의