@@ -467,10 +467,10 @@ func (d Disposition) Condition() Condition {
467467func (d Disposition ) Data () Data {
468468 return Data {C .pn_disposition_data (d .pn )}
469469}
470- func (d Disposition ) SectionNumber () uint16 {
471- return uint16 (C .pn_disposition_get_section_number (d .pn ))
470+ func (d Disposition ) SectionNumber () uint32 {
471+ return uint32 (C .pn_disposition_get_section_number (d .pn ))
472472}
473- func (d Disposition ) SetSectionNumber (section_number uint16 ) {
473+ func (d Disposition ) SetSectionNumber (section_number uint32 ) {
474474 C .pn_disposition_set_section_number (d .pn , C .uint32_t (section_number ))
475475}
476476func (d Disposition ) SectionOffset () uint64 {
@@ -828,23 +828,23 @@ func (t Transport) Log(message string) {
828828
829829 C .pn_transport_log (t .pn , messageC )
830830}
831- func (t Transport ) ChannelMax () uint32 {
832- return uint32 (C .pn_transport_get_channel_max (t .pn ))
831+ func (t Transport ) ChannelMax () uint16 {
832+ return uint16 (C .pn_transport_get_channel_max (t .pn ))
833833}
834- func (t Transport ) SetChannelMax (channel_max uint32 ) int {
834+ func (t Transport ) SetChannelMax (channel_max uint16 ) int {
835835 return int (C .pn_transport_set_channel_max (t .pn , C .uint16_t (channel_max )))
836836}
837- func (t Transport ) RemoteChannelMax () uint32 {
838- return uint32 (C .pn_transport_remote_channel_max (t .pn ))
837+ func (t Transport ) RemoteChannelMax () uint16 {
838+ return uint16 (C .pn_transport_remote_channel_max (t .pn ))
839839}
840- func (t Transport ) MaxFrame () uint16 {
841- return uint16 (C .pn_transport_get_max_frame (t .pn ))
840+ func (t Transport ) MaxFrame () uint32 {
841+ return uint32 (C .pn_transport_get_max_frame (t .pn ))
842842}
843- func (t Transport ) SetMaxFrame (size uint16 ) {
843+ func (t Transport ) SetMaxFrame (size uint32 ) {
844844 C .pn_transport_set_max_frame (t .pn , C .uint32_t (size ))
845845}
846- func (t Transport ) RemoteMaxFrame () uint16 {
847- return uint16 (C .pn_transport_get_remote_max_frame (t .pn ))
846+ func (t Transport ) RemoteMaxFrame () uint32 {
847+ return uint32 (C .pn_transport_get_remote_max_frame (t .pn ))
848848}
849849func (t Transport ) IdleTimeout () time.Duration {
850850 return (time .Duration (C .pn_transport_get_idle_timeout (t .pn )) * time .Millisecond )
0 commit comments