run:
Couldn't get I/O for the connection to: hostname
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
You need to have a Server Java program which you would run first
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
abalfazl hossein wrote:
Is it possible I and a friend access to internet, and use our IP?
abalfazl hossein wrote:
You need to have a Server Java program which you would run first
May you explain more?
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
public int available()
throws IOException
Returns the number of bytes that can be read from this input stream without blocking.
The available method of BufferedInputStream returns the sum of the the number of bytes remaining to be read in the buffer (count - pos) and the result of calling the available method of the underlying input stream.
Stephan van Hulst wrote:What code have you got so far, both client and server?
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
run:
Couldn't get I/O for the connection to: hostname
abalfazl hossein wrote:I run both by netbeans:
This the result of running of sockettest:
run:
Couldn't get I/O for the connection to: hostname
Server: MAIL From: [email protected]
Server: DATA
Server: Subject: testing
Server:
Stephan van Hulst wrote:Take a good look at your server's loop. As a matter of fact, copy the loop and explain what every single line does for us.
IOException: java.net.SocketException: Connection reset
abalfazl hossein wrote:
Every computer known by IP in network.
Socket class, for client used IP.
But server socket does not. Why?
abalfazl hossein wrote:I also have another question:
Every computer known by IP in network.
Socket class, for client used IP.
But server socket does not. Why?
Everybody's invited. Even this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|