I am not able to perofrm communication between the Server socket running on linux ,sending cipher bytes to windows client socket.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   venkatesha_subbegowda
Posted On:   Friday, May 4, 2001 03:50 PM

I have a ServerSocket in Linux which is
writing encrypted bytes to OutputStream.When i am trying to read it
from client Socket running in windows,
the read() method of input stream is
just blocking.
But the same server and client sockets
are able to communicate in windows to
windows.Can any one hint me about this.
I am using TWOFISH algorithm for the
encryption.

Re: I am not able to perofrm communication between the Server socket running on linux ,sending cipher bytes to windows client socket.

Posted By:   Tim_Rohaly  
Posted On:   Tuesday, May 8, 2001 09:10 AM

The content that you are sending has nothing to
do with the behavior you are seeing. read()
is supposed to block if there is no data
in the stream - that ought to be your first hint. Since
the problem lies in your code and you don't show
exactly what you're doing, I can only guess that you
are neglecting to do something like flush the output
buffer. In the absence of flushing, the details of the
data buffering depends on the operating system's
TCP/IP implementation. There are a number of other
ways that the sent data could be "delayed" and
not immediately available to the client - your question
doesn't give enough information to narrow it down.
About | Sitemap | Contact