Package sunlabs.brazil.util

Examples of sunlabs.brazil.util.SocketFactory


  throws IOException, UnknownHostException
    {
  this.host = host;
  this.port = port;

  SocketFactory socketFactory = HttpRequest.socketFactory;
  if (socketFactory == null) {
      socketFactory = SocketFactory.defaultFactory;
  }

  sock = socketFactory.newSocket(host, port);
  in = new BufferedInputStream(sock.getInputStream());
  out = new BufferedOutputStream(sock.getOutputStream());

  serial = count++;
    }
View Full Code Here

TOP

Related Classes of sunlabs.brazil.util.SocketFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.