DDVSocket edits
This commit is contained in:
		
							parent
							
								
									b34ee4927a
								
							
						
					
					
						commit
						97b37f1004
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -66,7 +66,6 @@ bool DDV_write(void * buffer, int todo, int sock){
 | 
				
			||||||
    if (r <= 0){
 | 
					    if (r <= 0){
 | 
				
			||||||
      switch (errno){
 | 
					      switch (errno){
 | 
				
			||||||
        case EWOULDBLOCK: printf("Would block\n"); break;
 | 
					        case EWOULDBLOCK: printf("Would block\n"); break;
 | 
				
			||||||
        case EAGAIN: printf("Again\n"); break;
 | 
					 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          socketError = true;
 | 
					          socketError = true;
 | 
				
			||||||
          printf("Could not write! %s\n", strerror(errno));
 | 
					          printf("Could not write! %s\n", strerror(errno));
 | 
				
			||||||
| 
						 | 
					@ -86,7 +85,6 @@ bool DDV_read(void * buffer, int todo, int sock){
 | 
				
			||||||
    if (r <= 0){
 | 
					    if (r <= 0){
 | 
				
			||||||
      switch (errno){
 | 
					      switch (errno){
 | 
				
			||||||
        case EWOULDBLOCK: printf("Read: Would block\n"); break;
 | 
					        case EWOULDBLOCK: printf("Read: Would block\n"); break;
 | 
				
			||||||
        case EAGAIN: printf("Read: Again\n"); break;
 | 
					 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          socketError = true;
 | 
					          socketError = true;
 | 
				
			||||||
          printf("Could not read! %s\n", strerror(errno));
 | 
					          printf("Could not read! %s\n", strerror(errno));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue