本文整理了Java中java.net.Socket.cacheLocalAddress()
方法的一些代码示例,展示了Socket.cacheLocalAddress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Socket.cacheLocalAddress()
方法的具体详情如下:
包路径:java.net.Socket
类名称:Socket
方法名:cacheLocalAddress
暂无
代码示例来源:origin: robovm/robovm
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: robovm/robovm
impl.bind(addr, port);
isBound = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: robovm/robovm
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: robovm/robovm
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: MobiVM/robovm
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: ibinti/bugvm
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Set the appropriate flags for a socket created by {@code
* ServerSocket.accept()}.
*
* @see ServerSocket#implAccept
*/
void accepted() throws SocketException {
isCreated = isBound = isConnected = true;
cacheLocalAddress();
}
代码示例来源:origin: ibinti/bugvm
impl.bind(addr, port);
isBound = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: MobiVM/robovm
impl.bind(addr, port);
isBound = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: FlexoVM/flexovm
impl.bind(addr, port);
isBound = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
impl.bind(addr, port);
isBound = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: MobiVM/robovm
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: ibinti/bugvm
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: com.bugvm/bugvm-rt
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: com.gluonhq/robovm-rt
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
代码示例来源:origin: FlexoVM/flexovm
impl.connect(dstAddress, dstPort);
isConnected = true;
cacheLocalAddress();
} catch (IOException e) {
impl.close();
内容来源于网络,如有侵权,请联系作者删除!