📄 udpdatagramconnection.java
字号:
/* * Created on 2005-8-15 by pcy * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */package javax.microedition.io;import java.io.IOException;/** * @author pcy * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */public interface UDPDatagramConnection extends DatagramConnection { /** * Gets the local address to which the * datagram connection is bound. * * <P>The host address(IP number) that can be used to connect to this * end of the datagram connection from an external system. * Since IP addresses may be dynamically assigned, a remote application * will need to be robust in the face of IP number reassignment.</P> * <P> The local hostname (if available) can be accessed from * <code> System.getProperty("microedition.hostname")</code> * </P> * * @return the local address to which the datagram connection is bound. * @exception IOException if the connection was closed. * @see ServerSocketConnection */ public String getLocalAddress() throws IOException; /** * Returns the local port to which this datagram connection is bound. * * @return the local port number to which this datagram connection * is connected. * @exception IOException if the connection was closed. * @see ServerSocketConnection */ public int getLocalPort() throws IOException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -