网络通信常用类
作者:互联网
InetAddress类:表示互联网协议 (IP) 地址URL类:代表一个统一资源定位符,它是指向互联网“资源”的指针。 资源可以是简单的文件或目录,也可以是对更为复杂的对象的引用,例如对数据库或搜索引擎的查询。URLConnection类:用于读取和写入此 URL 引用的资源。使用步骤:通过在 URL 上调用 openConnection 方法创建连接对象。处理设置参数和一般请求属性。使用 connect 方法建立到远程对象的实际连接。 远程对象变为可用。远程对象的头字段和内容变为可访问。DatagramPacket类:此类表示数据报包。 数据报包用来实现无连接包投递服务。每条报文仅根据该包中包含的信息从一台机器路由到另一台机器。DatagramSocket类:此类表示用来发送和接收数据报包的套接字。数据报套接字是包投递服务的发送或接收点。每个在数据报套接字上发送或接收的包都是单独编址和路由的。从一台机 器发送到另一台机器的多个包可能选择不同的路由,也可能按不同的顺序到达。
U2FsdGVkX1+p0PB4XTntyJ1vnslj2EEjTTPERqIOu0Q2B2wLCstCsL+baPg1cUh6
QXhZERs1+zMYxtIoR4ZwqlYcSDrhbKflQBcRmr/6kB6KCkG50BhPGJF0NDC8vRER
/A5qshLOE8x8p93ypJRGkAqGKWvlrL7teWhnJmRRh9TN3K7QmHctBhZqxFLPp33a
uXTL6Qe1tR4yCLluuPZI6GctL3qhjY7hNdVfFv+CYwXuprRTEHXM5ys7ZGLN7cLF
gkbEXvpxoyge+6wRoYAwKgjsezHp5q3/GtFLsQuYZ7lvi3pAxOh3AiN25YF84zvf
G88iPFKCufY4weSNzQ2QUkNwrRkWqjepssyLO2ItW2fjF630Fjp+vVzDaiPyeXh7
tFKfEmBCmf0lY0GVSJMq+TDooTUl2aszpBY2dM8L59IyxyNo4hvXg/t67pdU0HLj
QTRPkWulJuOkYgdYvobVIq7IXOCMUp+/xCreCvGjsNlkL0EFaR6Yz9/lgDZJJzbJ
WmjbfHOwNYkjTcAc0S7qk1W1UBC4JKEMQBN6qsoAPuaFJHfnvHEevXK6J2uJ1+5D
z2vCll65uWFGEvHqJ5slcJdiPZ9n5/uYJ8YMHIoBvgo1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象,接字,远程,路由 来源: https://blog.csdn.net/xmh_sxh_1314/article/details/113792079