socket
-
Core Java
java.net.SocketException: Broken Pipe Error
When working with network programming in Java, you may encounter various exceptions and errors. One of the common errors you…
Read More » -
nio
Java Nio SocketChannel Example
SocketChannel is a selectable channel belonging to the java.nio.channels package and is used for reading or writing the stream-oriented data.…
Read More » -
nio
Java Nio SSL Example
This is an example of a non-blocking I/O provided by java.nio using SSL handshake. …
Read More » -
ConnectException
java.net.ConnectException – How to solve Connect Exception
In this example we are going to discuss about one of the most common exceptions you will come across when…
Read More » -
Socket
Write text to Socket
In this example we shall show you how to write text to a Socket. To write text to a Socket one…
Read More » -
Socket
Read text from Socket
With this example we are going to demonstrate how to read text from a Socket. A Socket is an endpoint…
Read More » -
Socket
Send HTTP POST request with Socket
This is an example of how to send an HTTP POST request with a Socket. A socket is an endpoint…
Read More » -
Socket
Create client Socket with timeout
In this example we shall show you how to create a client Socket with timeout. A client socket is an…
Read More » -
Socket
Create client Socket
With this example we are going to demonstrate how to create a client Socket in Java. In short, to create…
Read More »