I have been trying to get this segment of code to work and connect to Island ECN for a project I have been working on for a company:

try {
islandConnect = new Socket("", port);
OutputStream raw = islandConnect.getOutputStream();
OutputStream buffered = new BufferedOutputStream(raw);
out = new OutputStreamWriter(buffered, "ASCII");
out.write("Lusernamepassword 0.");

BufferedReader rd = new BufferedReader(new InputStreamReader(islandConnect.getInputStream()));

String str;
while ((str = rd.readLine()) != null) {
} catch (Exception e) { System.out.println("error"); }

If anyone has worked on an Island ECN project in the past, how can I correct the formatting of the authentication packet to get connected? Thanks in advance.

Devin Hendricks