- Jul 14, 2008
- 1,161
- 1
- 0
<rant>
well have completed my exams and now i got some holidays
so i thought i will expand my brain a little and learn jaa
everything seemed fine then (i also had some compiling issues as the vista didnt allow me to create files anywhere i want) i thought i will give socket programming a little go
the problem is that my sockets are denied previleges like reading and writing
my code just was crashing then i thought i will analyse it with a catch statement and it turns out that iam unable to in/out data
any work around for this ??
here is my code
well have completed my exams and now i got some holidays
so i thought i will expand my brain a little and learn jaa
everything seemed fine then (i also had some compiling issues as the vista didnt allow me to create files anywhere i want) i thought i will give socket programming a little go
the problem is that my sockets are denied previleges like reading and writing
my code just was crashing then i thought i will analyse it with a catch statement and it turns out that iam unable to in/out data
any work around for this ??
here is my code
</rant>try {
echoSocket = new Socket("GS1", 7);
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(
echoSocket.getInputStream()));
} catch (UnknownHostException e) {
System.err.println("Don't know about host: taranis.");
System.exit(1);
} catch (IOException e) {
System.err.println("Couldn't get I/O for "
+ "the connection to: taranis.");
System.exit(1);
}
second excpetion is working
