public class SocketWindowWordCount extends Object
This program connects to a server socket and reads strings from the socket. The easiest way to try this out is to open a text server (at port 12345) using the netcat tool via
nc -l 12345and run this example with the hostname and the port as arguments.
|Modifier and Type||Class and Description|
Data type for words with count.
|Constructor and Description|
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.