Demo from https://github.com/twitter/cloudhopper-smpp/blob/master/src/test/java/com/cloudhopper/smpp/demo/ServerMain.java provides an example of receiving MT messages from client. But how to send messages (deliver_sm) from server to connected client?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I just took code from ClientMain and changed SubmitSm to DeliverSm. For testing purpose I read msg text from Console and send Message using this code. You should call this method in separate thread. Also you should handle list of sessions so you can get session reference when you want to send message.