示例#1
0
func (t Transport) SetIdleTimeout(timeout time.Duration) {
	C.pn_transport_set_idle_timeout(t.pn, C.pn_millis_t(timeout))
}
示例#2
0
func (m *message) SetTTL(d time.Duration) {
	C.pn_message_set_ttl(m.pn, C.pn_millis_t(d/time.Millisecond))
}