Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wayne2004

    Problem in using the Socket I/O function

    Hi I just solve the problem , thanks Pete, I found that in the output stream, I have to include the Out.write() statement in the same try () catch () with the construction of the outputstream , i.e. OutputStream Out = TCPClient.getinputstream(); This is quite strange to me and make me...
  2. wayne2004

    Problem in using the Socket I/O function

    Thanks for the advice, For the listen() method, I have checked with the text book and other sample codes, and found that the listen method is not implemented as well, it is explained that the bind() and listen() are being done during the construction of a ServerSocket, i.e. at the line ...
  3. wayne2004

    Problem in using the Socket I/O function

    Thanks Pete, I have try to debug the code and find that the NullPointerException is most likely incurred by the InputStream and OutputStream, Since I found that when I try to close them , the same error appears, It seems that I have something wrong with the declaration of the In (inputStream)...
  4. wayne2004

    NullPointerException help needed

    Thanks Pete, I have try to debug the code and find that the NullPointerException is most likely incurred by the InputStream and OutputStream, Since I found that when I try to close them , the same error appears, It seems that I have something wrong with the declaration of the In (inputStream)...
  5. wayne2004

    Problem in using the Socket I/O function

    Oh thanks for your notice,pete, perhaps I 'll summarize my problem in this manner! When I run my program under these conditions: try{ addr = InetAddress.getByName(peer_addr); TCPclient = new Socket(addr, port); OutputStream Out = TCPclient.getOutputStream(); Out.write(mBuffer...
  6. wayne2004

    Problem in using the Socket I/O function

    Hi, I am new to JAVA and this time I am going to develop an application that employ the java stream socket, My problem is that I can successfully create a server socket, create a socket and connect to them together. but for the inputstream and outputstream, I don't know if it has problem with my...

Part and Inventory Search

Back
Top