public void main(String[] args){ String host = "123.126.113.42"; int port = 80; Socket s = new Socket(host, port); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), "UTF8")); BufferedReader br = new Bu…
Spark 1.5.2 Spark Streaming 学习笔记和编程练习 Overview 概述 Spark Streaming is an extension of the core Spark API that enables scalable, high-throughput, fault-tolerant stream processing of live data streams. Data can be ingested from many sources like Kafka,…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; namespace Test06 { public partial class F…
客户端通常可使用Socket的构造器来连接到指定服务器,Socket通常可使用如下两个构造器. Socket(lnetAddress/String remoteAddress , int port):创建连接到指定远程主机.远程端口的Socket,该构造器没有指定本地地址.本地端口,默认使用本地主机的默认IP地址,默认使用系统动态指定的IP地址. Socket(lnetAddress/String remoteAddress , int port , lnetAddress local…