我如何通过Lan发送短信?使用Java [英] How I Can Send Text Message Through Lan? Using Java

查看:70
本文介绍了我如何通过Lan发送短信?使用Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何通过局域网发送短信?使用JAVA

How i can send text message through LAN? Using JAVA

推荐答案

步骤1:创建连接到指定主机和端口的套接字。

步骤2:通过套接字发送指定的消息到服务器。

步骤3:从套接字获取输入流并声明BufferedReader,以便它可以从服务器读取文本行。



使用正确的包,以便生成正确的输出。
Step1: Create a Socket connected to the specified host and port.
Step 2: Send the specified message through the socket to the server.
Step3: Get an input stream from the socket and declare BufferedReader so that it can read lines of text from the server.

Use the correct packages so that the proper output is produced.


这篇关于我如何通过Lan发送短信?使用Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆