23 lines
329 B
Plaintext
23 lines
329 B
Plaintext
#include <sys/select.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
|
|
char recv_buf[3000];
|
|
char send_buf[3000];
|
|
|
|
int maxfd;
|
|
int lastid = 0;
|
|
int sockfd;
|
|
|
|
int main(int ac, char **av) {
|
|
|
|
sockfd = socket(AF_INET, SOCK_STREAM, 0);
|
|
|
|
while (1) {
|
|
}
|
|
}
|