Skip to content

Instantly share code, notes, and snippets.

View allen-paystack's full-sized avatar

Oloruntobi Allen allen-paystack

View GitHub Profile
@allen-paystack
allen-paystack / SocketClient.java
Created October 27, 2025 14:24
JPOS Channel Creation
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);