Changeset 5465:d5e7bc292531 in roaraudio for libroar/proto.c


Ignore:
Timestamp:
03/31/12 02:30:26 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

no longer use fixed protocol version (_ROAR_MESSAGE_VERSION=0).
protocol version is now used by setting in message object.
If using connection based req (roar_req()) it will use version from connection
object setting. The connection object get's a default from the config.
The config key is "protocolversion".
roard will answer in the same version as the request was send in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/proto.c

    r5463 r5465  
    7070 
    7171 headerlen = _ROAR_MESS_BUF_LEN; 
    72  
    73  mes->version = _ROAR_MESSAGE_VERSION; 
    7472 
    7573 buf[0] = mes->version; // first byte is always the version. 
     
    320318  return -1; 
    321319 
     320 if ( mes->version == _ROAR_MESSAGE_VERSION ) 
     321  mes->version = con->version; 
     322 
    322323 return roar_vreq2(vio, mes, data, errorframe); 
    323324} 
Note: See TracChangeset for help on using the changeset viewer.