| Import line: | Gio = imports.gi.Gio; | 
| GIR File: | Gio-2.0.gir | 
| C documentation: | GSocketProtocol | 
| Enum : | SocketProtocol | 
| Properties | |
|---|---|
| 
			
			 
		gint32 Gio.SocketProtocol.DEFAULT : 0
			 
		  
			 | 
		   
		|
| 
			
			 
		gint32 Gio.SocketProtocol.SCTP : 132
			 
		  
			 | 
		   
		|
| 
			
			 
		gint32 Gio.SocketProtocol.TCP : 6
			 
		  
			 | 
		   
		|
| 
			
			 
		gint32 Gio.SocketProtocol.UDP : 17
			 
		  
			 | 
		   
		|
| 
			
			 
		gint32 Gio.SocketProtocol.UNKNOWN : -1
			 
		  
			 | 
		   
		|
| None | 
| None | 
| None | 
| Class / Namespace | Method / Signal / Properties | 
|---|---|
| 
		
			Gio.Socket
             Property  | 
            
            
 
 
 
  
			
			 
				protocol : Gio.SocketProtocol 
                   
                     
			 
		  
			 | 
            
        
        
| 
		
			Gio.Socket
             Method  | 
            
            
 
	   
            
                
		
                 Create a new Gio.Socket  
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Gio.Socket
             Method  | 
            
            
 
	   
            
                
		 
			get_protocol
				
				 () 
			
				
					 : 
					Gio.SocketProtocol
					
				
			
		 
                Gets the socket protocol id the socket was created with.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Gio.SocketClient
             Property  | 
            
            
 
 
 
  
			
			 
				protocol : Gio.SocketProtocol 
                   
                     
			 
		  
			 | 
            
        
        
| 
		
			Gio.SocketClient
             Method  | 
            
            
 
	   
            
                
		 
			get_protocol
				
				 () 
			
				
					 : 
					Gio.SocketProtocol
					
				
			
		 
                Gets the protocol name type of the socket client.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Gio.SocketClient
             Method  | 
            
            
 
	   
            
                
		 
			set_protocol
				
				 (SocketProtocol protocol) 
			
				
					 : 
					none
					
				
			
		 
                Sets the protocol of the socket client.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Gio.SocketListener
             Method  | 
            
            
 
	   
            
                
		 
			add_address
				
				 (SocketAddress address, SocketType type, SocketProtocol protocol, Object source_object, Object out_values) 
			
				
					 : 
					gboolean
					
				
			
		 
                Creates a socket of type type and protocol protocol, binds  
		 
		 
		 
                 
		     
              
            it to address and adds it to the set of sockets we're accepting sockets from.  |