This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SocketClient { | |
| private static final String CHANNEL_NAME = "NIBSS-CHANNEL"; | |
| public static ASCIIChannel getChannel(ISOPackager p) { | |
| ASCIIChannel channel = (ASCIIChannel) NameRegistrar.getIfExists(CHANNEL_NAME); | |
| if (channel == null) { | |
| String ipAddress = System.getenv("IP"); | |
| String port = System.getenv("PORT"); | |
| channel = new ASCIIChannel(ipAddress, Integer.parseInt(port), p); |