问题使用BufferOutputStream发送ISO 8583消息

时间:2018-09-04 10:19:48

标签: java iso

String isoMessage = "00586005060000F81202C0006080020004123456745612350000000000000000180000012012001200250030001097101800000001310123000001";

byte[] iso = isoMessage.getBytes();

bo = new BufferedOutputStream(socket.getOutputStream());
bi = new BufferedInputStream(socket.getInputStream());

bo.write(iso, 0, iso.length);
bo.flush();

我成功连接了套接字,但是在bo.write()之后,我无法从使用bufferInputStream获得任何响应。请提供一些建议。

0 个答案:

没有答案