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 sever (at port 12345) using the netcat tool via
nc -l 12345and run this example with the port as an argument.
Modifier and Type | Class and Description |
---|---|
static class |
SocketWindowWordCount.WordWithCount
Data type for words with count
|
static class |
SocketWindowWordCount.WordWithCount$ |
Constructor and Description |
---|
SocketWindowWordCount() |
public static void main(String[] args)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.