All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.cross.thread.ProxyThread Maven / Gradle / Ivy

There is a newer version: 1.0.9.RELEASE
Show newest version
package com.minlia.cross.thread;

import com.minlia.cross.message.MessageReceiver;
import com.minlia.cross.message.MessageSender;
import com.minlia.cross.client.NgrokClient;
import java.io.IOException;

import javax.net.ssl.SSLSocket;

public class ProxyThread extends Thread {
	String ClientId = "";
	NgrokClient ngrokcli;
	public ProxyThread(NgrokClient ngrokcli,String ClientIdp) {
		super();
		this.ngrokcli=ngrokcli;
		this.ClientId = ClientIdp;
	}
	

	public void run() {
			SSLSocket s=ngrokcli.connectSSL();
			//
			try {
				MessageSender.SendRegProxy(ClientId, s.getOutputStream());
				MessageReceiver msg = new MessageReceiver(ngrokcli);
				msg.unpack(s);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy