dbTalk Databases Forums  

Communicate problem between client/server

comp.database.oracle comp.database.oracle


Discuss Communicate problem between client/server in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michelle
 
Posts: n/a

Default Communicate problem between client/server - 07-18-2004 , 05:06 AM






Hi all,

I have a client/server setup which I would like it to communicate
as follows:

Server:
Loop
Write something to client via writeUTF() method
(for example: loop #1 - write "A"; loop #2 - write "B")
Get input from the client via readUTF() method
(for example: loop #1 - get "X"; loop #2 - get "Y")
End loop

Client:
Loop
Read something from server via readUTF() method
(for example: loop #1 - read "A"; loop #2 - read "B")
prompt for input of something (I'm using System.in.read())
(for example: loop #1 - entered "X"; loop #2 - entered "Y")
End loop;

However, when I use System.in.read() to entered X and pressed
<CR>, the program seems sending both "X" and "<CR>" back
to the server and in loop#2, program just don't stop and prompt
for input.

Any idea?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.