Revision ea27c49b chunker_player/tcp_chunk_puller.c

View differences:

chunker_player/tcp_chunk_puller.c
69 69
	servaddr.sin_addr.s_addr = htonl(INADDR_ANY);
70 70
	servaddr.sin_port = htons(port);
71 71
	r = bind(accept_fd, (struct sockaddr *)&servaddr, sizeof(servaddr));
72
	if (r < 0) {
73
		perror("cannot bind to port!\n");
74
		return -1;
75
	}
72 76
	
73 77
	fprintf(stderr,"listening on port %d\n", port);
74 78
	

Also available in: Unified diff