gpt4 book ai didi

org.xnio.ssl.XnioSsl.connectSsl()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 03:31:05 27 4
gpt4 key购买 nike

本文整理了Java中org.xnio.ssl.XnioSsl.connectSsl()方法的一些代码示例,展示了XnioSsl.connectSsl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XnioSsl.connectSsl()方法的具体详情如下:
包路径:org.xnio.ssl.XnioSsl
类名称:XnioSsl
方法名:connectSsl

XnioSsl.connectSsl介绍

[英]Create an SSL connection to a remote host.
[中]创建到远程主机的SSL连接。

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Create an SSL connection to a remote host.
 *
 * @param worker the worker to use
 * @param destination the destination connection address
 * @param openListener the initial open-connection listener
 * @param optionMap the option map
 *
 * @return the SSL connection
 */
@Deprecated
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) {
  return connectSsl(worker, ANY_INET_ADDRESS, destination, openListener, null, optionMap);
}

代码示例来源:origin: wildfly/wildfly

/**
 * Create an SSL connection to a remote host.
 *
 * @param worker the worker to use
 * @param bindAddress the local bind address
 * @param destination the destination connection address
 * @param openListener the initial open-connection listener
 * @param optionMap the option map
 * @return the SSL connection
 */
@Deprecated
public IoFuture<ConnectedSslStreamChannel> connectSsl(final XnioWorker worker, final InetSocketAddress bindAddress, final InetSocketAddress destination, final ChannelListener<? super ConnectedSslStreamChannel> openListener, final OptionMap optionMap) {
  return connectSsl(worker, bindAddress, destination, openListener, null, optionMap);
}

代码示例来源:origin: wildfly/wildfly

/**
 * Create an SSL connection to a remote host.
 *
 * @param worker the worker to use
 * @param destination the destination connection address
 * @param openListener the initial open-connection listener
 * @param bindListener the bind listener
 * @param optionMap the option map
 * @return the SSL connection
 */
@Deprecated
public IoFuture<ConnectedSslStreamChannel> connectSsl(final XnioWorker worker, final InetSocketAddress destination, final ChannelListener<? super ConnectedSslStreamChannel> openListener, final ChannelListener<? super BoundChannel> bindListener, final OptionMap optionMap) {
  return connectSsl(worker, ANY_INET_ADDRESS, destination, openListener, bindListener, optionMap);
}

代码示例来源:origin: org.jboss.remoting3/jboss-remoting

protected IoFuture<ConnectedSslStreamChannel> createSslConnection(final SocketAddress bindAddress, final InetSocketAddress destination, final OptionMap connectOptions, final XnioSsl xnioSsl, final ChannelListener<ConnectedStreamChannel> openListener) {
  return bindAddress == null ? xnioSsl.connectSsl(xnioWorker, destination, openListener, connectOptions) : xnioSsl.connectSsl(xnioWorker, (InetSocketAddress) bindAddress, destination, openListener, connectOptions);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Create an SSL connection to a remote host.
 *
 * @param worker the worker to use
 * @param bindAddress the local bind address
 * @param destination the destination connection address
 * @param openListener the initial open-connection listener
 * @param optionMap the option map
 * @return the SSL connection
 */
@Deprecated
public IoFuture<ConnectedSslStreamChannel> connectSsl(final XnioWorker worker, final InetSocketAddress bindAddress, final InetSocketAddress destination, final ChannelListener<? super ConnectedSslStreamChannel> openListener, final OptionMap optionMap) {
  return connectSsl(worker, bindAddress, destination, openListener, null, optionMap);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Create an SSL connection to a remote host.
 *
 * @param worker the worker to use
 * @param destination the destination connection address
 * @param openListener the initial open-connection listener
 * @param optionMap the option map
 *
 * @return the SSL connection
 */
@Deprecated
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) {
  return connectSsl(worker, ANY_INET_ADDRESS, destination, openListener, null, optionMap);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Create an SSL connection to a remote host.
 *
 * @param worker the worker to use
 * @param destination the destination connection address
 * @param openListener the initial open-connection listener
 * @param bindListener the bind listener
 * @param optionMap the option map
 * @return the SSL connection
 */
@Deprecated
public IoFuture<ConnectedSslStreamChannel> connectSsl(final XnioWorker worker, final InetSocketAddress destination, final ChannelListener<? super ConnectedSslStreamChannel> openListener, final ChannelListener<? super BoundChannel> bindListener, final OptionMap optionMap) {
  return connectSsl(worker, ANY_INET_ADDRESS, destination, openListener, bindListener, optionMap);
}

代码示例来源:origin: org.jboss.remoting3/jboss-remoting

future = bindAddress == null ? xnioSsl.connectSsl(xnioWorker, (InetSocketAddress) destination, openListener, connectOptions) : xnioSsl.connectSsl(xnioWorker, (InetSocketAddress) bindAddress, (InetSocketAddress) destination, openListener, connectOptions);
} else {
  future = bindAddress == null ? xnioWorker.connectStream(destination, openListener, connectOptions) : xnioWorker.connectStream(bindAddress, destination, openListener, null, connectOptions);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com