Opened 12 years ago

Closed 12 years ago

#188 closed task (fixed)

connection object needs to be upgraded

Reported by: ph3-der-loewe Owned by: ph3-der-loewe
Priority: medium Milestone: RoarAudio major release 1.0
Component: libroar and friends Version: 1.0beta0
Keywords: soname_change Cc:
Architecture: Compiler:
Difficulty: normal Kernel:
Operating System: Parent Tickets:
Patch attached: no Protocol: RoarAudio
Sound driver: Topic: other

Description (last modified by ph3-der-loewe)

The connection object should be updated.
It should contain the following members after the soname change:

Member Type Comment
refc size_t Reference counter for reference based allocation (refc > 0) or zero for on-stack mode.
flags uint32_t General flags
version int The protocol version to use
viocon struct roar_vio_calls * The pointer to the connection to the server
viocon_store struct roar_vio_calls Store for viocon used if needed
errorframe struct roar_error_frame The default error frame used for this connection
cb_userdata void * Some user data to be passed to the callback function
cb void (*)(struct roar_connection * con, struct roar_message * mes, void * data, void * userdata) The callback function used for notify and other asynchron messages
server_stds struct roar_stds * The list of standards as supported by the server
server_name const char * Server name

The following flags should be defined:

Flag Value Status Comment
NONE 0x00000000 ok Used to clear flags
FH 0x00000001 obsoleted Old flag for sysio based connections
VIO 0x00000002 mandatory VIO based connection
ISCLIENT 0x00000004 ??? ???
SUPPORT_V2 0x00000008 ok, mandatory if con.version == 2 Both peers support the Version 2 protocol
SUPPORT_EF 0x00000010 new Both peers support error frames
FREESELF 0x00000020 new Free the connection object


Change History (6)

comment:1 Changed 12 years ago by ph3-der-loewe

Should there also be a full struct roar_stds structure present in the connection object?

comment:2 Changed 12 years ago by ph3-der-loewe

  • Summary changed from connect object needs to be upgraded to connection object needs to be upgraded

comment:3 Changed 12 years ago by ph3-der-loewe

  • Owner set to ph3-der-loewe
  • Status changed from new to assigned

comment:4 Changed 12 years ago by ph3-der-loewe

Should the server name also be present in the object? This may be useful for informational purpose as well as the use-execed-workaround.

comment:5 Changed 12 years ago by ph3-der-loewe

  • Description modified (diff)

Added some more vars to the connection object.

comment:6 Changed 12 years ago by ph3-der-loewe

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from current to 1.0beta0
Note: See TracTickets for help on using tickets.