Slide 90
Slide 90 text
Bilbliothèques C
func publish(message: String, exchange: String, key: String) throws {
guard let connection = self.connection else {
throw AMQPConnectorError.notConnected
}
amqp_basic_publish(connection,
Constants.defaultChannel,
amqp_cstring_bytes(exchange),
amqp_cstring_bytes(key),
0, 0, nil,
amqp_cstring_bytes(message))
}
90