go to start File Deskriptor Auf Non Blocking
|home |print view |recent changes |changed November 26, 2008 |
exact
|You are 107.20.129.212 <- set your identity!

Auch diese Funktionalität kapselt man besser in eine Funktion:

bool setToNonBlocking(int sockfd){
	int flags = fcntl(sockfd,F_GETFL,0);
	if (0>flags || 0>fcntl(sockfd,F_SETFL,O_NONBLOCK|flags)) {
		showError("couldn't get/set fcntl flags:");
		return false;
	}
	return true;
}


|home |print view |recent changes |changed November 26, 2008 |
exact
|You are 107.20.129.212 <- set your identity!

File Deskriptor Auf Non Blocking
go to start