Meer debugging
This commit is contained in:
		
							parent
							
								
									f4a14532cb
								
							
						
					
					
						commit
						d18c59b4e2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -13,7 +13,7 @@ bool socketError = false; | |||
| bool socketBlocking = false; | ||||
| 
 | ||||
| int DDV_OpenUnix(std::string adres, bool nonblock = false){ | ||||
|   int s = socket(AF_UNIX, SOCK_STREAM, 0); | ||||
|   int s = socket(PF_UNIX, SOCK_STREAM, 0); | ||||
|   sockaddr_un addr; | ||||
|   addr.sun_family = AF_UNIX; | ||||
|   strncpy(addr.sun_path, adres.c_str(), adres.size()+1); | ||||
|  | @ -24,6 +24,7 @@ int DDV_OpenUnix(std::string adres, bool nonblock = false){ | |||
|       flags |= O_NONBLOCK; | ||||
|       fcntl(s, F_SETFL, flags); | ||||
|     } | ||||
|     fprintf(stderr, "Connected to %s\n", addr.sun_path); | ||||
|     return s; | ||||
|   }else{ | ||||
|     close(s); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma