Search in sources :

Example 1 with UnixDomainSocketFactory

use of org.web3j.quorum.UnixDomainSocketFactory in project quorum-acceptance-tests by ConsenSys.

the class RawContractService method getIPCHttpClient.

private OkHttpClient getIPCHttpClient(String thirdPartyURL) {
    if (ipcClients.containsKey(thirdPartyURL)) {
        return ipcClients.get(thirdPartyURL);
    }
    OkHttpClient client = new OkHttpClient.Builder().socketFactory(new UnixDomainSocketFactory(new File(thirdPartyURL))).build();
    ipcClients.put(thirdPartyURL, client);
    return client;
}
Also used : OkHttpClient(okhttp3.OkHttpClient) UnixDomainSocketFactory(org.web3j.quorum.UnixDomainSocketFactory) File(java.io.File)

Aggregations

File (java.io.File)1 OkHttpClient (okhttp3.OkHttpClient)1 UnixDomainSocketFactory (org.web3j.quorum.UnixDomainSocketFactory)1