comparison src/net/sourceforge/jsocks/Socks4Message.java @ 352:2bc6805cbc91

update jsocks to 2011-03-19
author Carl Byington <carl@five-ten-sg.com>
date Fri, 01 Aug 2014 11:32:33 -0700
parents 205ee2873330
children
comparison
equal deleted inserted replaced
351:1bf94d2bfafe 352:2bc6805cbc91
1 package net.sourceforge.jsocks; 1 package net.sourceforge.jsocks;
2 import java.io.*; 2 import java.io.*;
3 import java.net.*; 3 import java.net.*;
4 4
5 /** 5 /**
6 SOCKS4 Reply/Request message. 6 SOCKS4 Reply/Request message.
7 */ 7 */
8 8
9 class Socks4Message extends ProxyMessage{ 9 public class Socks4Message extends ProxyMessage{
10 10
11 private byte[] msgBytes; 11 private byte[] msgBytes;
12 private int msgLength; 12 private int msgLength;
13 13
14 /** 14 /**
23 23
24 msgBytes[0] = (byte) 0; 24 msgBytes[0] = (byte) 0;
25 msgBytes[1] = (byte) command; 25 msgBytes[1] = (byte) command;
26 } 26 }
27 27
28 /** 28 /**
29 * Server successfull reply 29 * Server successfull reply
30 */ 30 */
31 public Socks4Message(int cmd,InetAddress ip,int port){ 31 public Socks4Message(int cmd,InetAddress ip,int port){
32 this(0,cmd,ip,port,null); 32 this(0,cmd,ip,port,null);
33 } 33 }
34 34
35 /** 35 /**
36 * Client request 36 * Client request
37 */ 37 */
38 public Socks4Message(int cmd,InetAddress ip,int port,String user){ 38 public Socks4Message(int cmd,InetAddress ip,int port,String user){
39 this(SOCKS_VERSION,cmd,ip,port,user); 39 this(SOCKS_VERSION,cmd,ip,port,user);
40 } 40 }