Changes

Jump to navigation Jump to search
160 bytes added ,  11:18, 11 January 2017
Line 23: Line 23:  
== Data types ==
 
== Data types ==
   −
In soccr/soccr.h there are two types declares
+
In soccr/soccr.h there are three types declares
    
; <code>struct libsoccr_sk</code>
 
; <code>struct libsoccr_sk</code>
Line 30: Line 30:  
; <code>struct libsoccr_sk_data</code>
 
; <code>struct libsoccr_sk_data</code>
 
: A structure containing a set of 32-bit values that are returned by ''getter'' and that are to be passed '''as is''' to the ''setter'' call
 
: A structure containing a set of 32-bit values that are returned by ''getter'' and that are to be passed '''as is''' to the ''setter'' call
 +
 +
; <code>struct libsoccr_addr</code>
 +
: A structure that defines soccaddr for a socket. It's used by set/get calls described further.
    
=== Data internals ===
 
=== Data internals ===
   −
Inside the data structure there's a special field called <code>flags</code> that gives information about the meaning of some other fields. Though it's not bad just to pass this structure as-is between libsoccr calls, doing some optimization based on flags is OK.
+
Inside the <code>libsoccr_sk_data</code> structure there's a special field called <code>flags</code> that gives information about the meaning of some other fields. Though it's not bad just to pass this structure as-is between libsoccr calls, doing some optimization based on flags is OK.
    
So here are the flags that make sense
 
So here are the flags that make sense

Navigation menu