1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-05 00:10:29 +08:00
This commit is contained in:
fumiama
2021-05-03 00:24:27 +08:00
parent ced6a6afca
commit 410c540233
2 changed files with 1 additions and 9 deletions

View File

@@ -47,10 +47,6 @@ int main(int argc,char *argv[]) { //usage: ./client host port
ssize_t numbytes;
puts("break!");
while((sockfd = socket(AF_INET,SOCK_STREAM,0)) == -1);
#if !__APPLE__
int reuse = 1;
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse));
#endif
puts("Get sockfd");
their_addr.sin_family = AF_INET;
their_addr.sin_port = htons(atoi(argv[2]));