软件包 | 描述 |
---|---|
java.net |
为实现网络应用程序提供类。
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
DatagramSocketImpl.peekData(DatagramPacket p)
偷看包,看看是谁从。
|
void |
DatagramSocket.receive(DatagramPacket p)
接收数据报包从这个插座。
|
protected abstract void |
DatagramSocketImpl.receive(DatagramPacket p)
接收数据包。
|
void |
DatagramSocket.send(DatagramPacket p)
从这个套接字发送数据报包。
|
protected abstract void |
DatagramSocketImpl.send(DatagramPacket p)
发送一个数据包。
|
void |
MulticastSocket.send(DatagramPacket p, byte ttl)
过时的。
使用下面的代码或其等效的:int TTL = mcastsocket。gettimetolive();mcastsocket。settimetolive(newttl);mcastsocket。发送(P);mcastsocket。settimetolive(TTL);......
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.