// Path: src/main/java/org/adelbs/iso8583/exception/ConnectionException.java
// public class ConnectionException extends Exception {
// 
// 	private static final long serialVersionUID = 2L;
// 
// 	public ConnectionException(String message) {
// 		super(message);
// 	}
// 
// }
// 
// Path: src/main/java/org/adelbs/iso8583/exception/ParseException.java
// public class ParseException extends Exception {
// 
// 	private static final long serialVersionUID = 2L;
// 
// 	public ParseException(String message) {
// 		super(message);
// 	}
// 
// }


import java.io.IOException;
import org.adelbs.iso8583.exception.ConnectionException;
import org.adelbs.iso8583.exception.ParseException;
package org.adelbs.iso8583.clientserver;



class MockISOServer extends MockISOConnection{
	
	public MockISOServer(final String host, final int port) throws IOException, ConnectionException{
		this.conn = new ISOConnection(true, host, port, 1000);
		conn.setIsoConfig(ISOCONFIG);
		conn.putCallback(String.valueOf(Thread.currentThread().getId()), new MockServerCallback(conn,ISOCONFIG));
		conn.connect(String.valueOf(Thread.currentThread().getId()));
		System.out.println("Server: Connected");
	}
	
	public void process() throws MockISOException{
		try {
			conn.processNextPayload(String.valueOf(Thread.currentThread().getId()), false, 0);
// Path: src/main/java/org/adelbs/iso8583/exception/ConnectionException.java
// public class ConnectionException extends Exception {
// 
// 	private static final long serialVersionUID = 2L;
// 
// 	public ConnectionException(String message) {
// 		super(message);
// 	}
// 
// }
// 
// Path: src/main/java/org/adelbs/iso8583/exception/ParseException.java
// public class ParseException extends Exception {
// 
// 	private static final long serialVersionUID = 2L;
// 
// 	public ParseException(String message) {
// 		super(message);
// 	}
// 
// }


// Path: src/test/java/org/adelbs/iso8583/clientserver/MockISOServer.java
import java.io.IOException;
import org.adelbs.iso8583.exception.ConnectionException;
import org.adelbs.iso8583.exception.ParseException;

package org.adelbs.iso8583.clientserver;



class MockISOServer extends MockISOConnection{
	
	public MockISOServer(final String host, final int port) throws IOException, ConnectionException{
		this.conn = new ISOConnection(true, host, port, 1000);
		conn.setIsoConfig(ISOCONFIG);
		conn.putCallback(String.valueOf(Thread.currentThread().getId()), new MockServerCallback(conn,ISOCONFIG));
		conn.connect(String.valueOf(Thread.currentThread().getId()));
		System.out.println("Server: Connected");
	}
	
	public void process() throws MockISOException{
		try {
			conn.processNextPayload(String.valueOf(Thread.currentThread().getId()), false, 0);
		} catch (ParseException e) {