Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 06-29-08   #21 (permalink)
Apple Doesn't Love You
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,951
Blog Entries: 1

Rep: 559 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 334
FAQs Submitted: 6
Trader Rating: 5
Default

I'm not sure what you're asking. Are you asking how to read the data you previously wrote?
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 06-29-08   #22 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 1,995

Rep: 74 LyokoHaCk is acknowledged by some
Unique Rep: 69
FAQs Submitted: 1
Folding Team Rank: 1901
Trader Rating: 2
Default

I'm asking how to catch any responses from the server (any packets sent from the server as a response to what I sent) and output it in the console.


Right now, the program terminates right after the out.write data is sent by me and received by the server.
LyokoHaCk is offline I fold for Overclock.net   Reply With Quote
Old 06-29-08   #23 (permalink)
Apple Doesn't Love You
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 4,951
Blog Entries: 1

Rep: 559 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 334
FAQs Submitted: 6
Trader Rating: 5
Default

What does the code look like? You probably need a loop.
__________________
BIG BROTHER
I put on my robe and wizard hat...

IS WATCHING

System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 06-29-08   #24 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 1,995

Rep: 74 LyokoHaCk is acknowledged by some
Unique Rep: 69
FAQs Submitted: 1
Folding Team Rank: 1901
Trader Rating: 2
Default

When I put this code in after write
Code:
in = new BufferedReader(new InputStreamReader(
                                        echoSocket.getInputStream()));
char[] buffer = new buffer[] { }

while(in.ready()) {
   	    in.read(buffer);
            switch(buffer[0]) {
            case 0x01:
                System.out.println(buffer[0] + " is 0x01");
            default:
                System.out.println("Unrecognized packet data: " + buffer[0]);
            }
   	}
write stops working too.

I'm starting to build a protocol now.

Last edited by LyokoHaCk : 06-29-08 at 11:28 AM.
LyokoHaCk is offline I fold for Overclock.net   Reply With Quote
Old 06-29-08   #25 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 1,995

Rep: 74 LyokoHaCk is acknowledged by some
Unique Rep: 69
FAQs Submitted: 1
Folding Team Rank: 1901
Trader Rating: 2
Default

bump!
LyokoHaCk is offline I fold for Overclock.net   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 02:50 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.14033 seconds with 10 queries