// Path: sdk/src/main/java/com/theeyetribe/clientsdk/response/CalibrationPointEndResponse.java
// public class CalibrationPointEndResponse extends Response
// {
//     public static class Values
//     {
//         @SerializedName(Protocol.CALIBRATION_CALIBRESULT)
//         public CalibrationResult calibrationResult;
//     }
// 
//     public Values values = new Values();
// }
// 
// Path: sdk/src/main/java/com/theeyetribe/clientsdk/response/Response.java
// public class Response
// {
//     public String category;
//     public String request;
//     public int id;
//     public int statuscode;
// 
//     public transient long transitTime;
// }
// 
// Path: sdk/src/main/java/com/theeyetribe/clientsdk/response/ResponseFailed.java
// public class ResponseFailed extends Response
// {
//     public static class Values
//     {
//         @SerializedName(Protocol.KEY_STATUSMESSAGE)
//         public String statusMessage;
//     }
// 
//     public Values values = new Values();
// }


import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.theeyetribe.clientsdk.request.*;
import com.theeyetribe.clientsdk.response.CalibrationPointEndResponse;
import com.theeyetribe.clientsdk.response.Response;
import com.theeyetribe.clientsdk.response.ResponseFailed;
import com.theeyetribe.clientsdk.response.TrackerGetResponse;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.util.Enumeration;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.atomic.AtomicInteger;
        {
            System.out.println("Exception while establishing socket connection: " + e.getLocalizedMessage());
        }

        close();

        return false;
    }

    public synchronized void close()
    {
        try
        {
            if (null != mSocket)
                try
                {
                    mSocket.close();
                }
                catch (Exception e)
                {
                    // consume
                }
            mSocket = null;

            if (null != mIncomingStreamHandler)
                mIncomingStreamHandler.stop();
            mIncomingStreamHandler = null;

            if (null != mOutgoingStreamHandler)
                mOutgoingStreamHandler.stop();
// Path: sdk/src/main/java/com/theeyetribe/clientsdk/response/CalibrationPointEndResponse.java
// public class CalibrationPointEndResponse extends Response
// {
//     public static class Values
//     {
//         @SerializedName(Protocol.CALIBRATION_CALIBRESULT)
//         public CalibrationResult calibrationResult;
//     }
// 
//     public Values values = new Values();
// }
// 
// Path: sdk/src/main/java/com/theeyetribe/clientsdk/response/Response.java
// public class Response
// {
//     public String category;
//     public String request;
//     public int id;
//     public int statuscode;
// 
//     public transient long transitTime;
// }
// 
// Path: sdk/src/main/java/com/theeyetribe/clientsdk/response/ResponseFailed.java
// public class ResponseFailed extends Response
// {
//     public static class Values
//     {
//         @SerializedName(Protocol.KEY_STATUSMESSAGE)
//         public String statusMessage;
//     }
// 
//     public Values values = new Values();
// }


// Path: sdk/src/main/java/com/theeyetribe/clientsdk/GazeApiManager.java
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.theeyetribe.clientsdk.request.*;
import com.theeyetribe.clientsdk.response.CalibrationPointEndResponse;
import com.theeyetribe.clientsdk.response.Response;
import com.theeyetribe.clientsdk.response.ResponseFailed;
import com.theeyetribe.clientsdk.response.TrackerGetResponse;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.util.Enumeration;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.atomic.AtomicInteger;

        {
            System.out.println("Exception while establishing socket connection: " + e.getLocalizedMessage());
        }

        close();

        return false;
    }

    public synchronized void close()
    {
        try
        {
            if (null != mSocket)
                try
                {
                    mSocket.close();
                }
                catch (Exception e)
                {
                    // consume
                }
            mSocket = null;

            if (null != mIncomingStreamHandler)
                mIncomingStreamHandler.stop();
            mIncomingStreamHandler = null;

            if (null != mOutgoingStreamHandler)
                mOutgoingStreamHandler.stop();
            mOutgoingStreamHandler = null;