2 * Copyright (c) 2013 Robert Varga. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.bgpcep.tcpmd5.netty;
10 import io.netty.buffer.ByteBufAllocator;
11 import io.netty.channel.MessageSizeEstimator;
12 import io.netty.channel.RecvByteBufAllocator;
13 import io.netty.channel.socket.ServerSocketChannelConfig;
15 import org.opendaylight.bgpcep.tcpmd5.KeyMapping;
18 * {@link ServerSocketChannelConfig} augmented with TCP MD5 Signature option support.
20 public interface MD5ServerSocketChannelConfig extends ServerSocketChannelConfig {
21 KeyMapping getMD5SignatureKeys();
23 MD5ServerSocketChannelConfig setMD5SignatureKeys(KeyMapping keys);
26 MD5ServerSocketChannelConfig setBacklog(int backlog);
29 MD5ServerSocketChannelConfig setReuseAddress(boolean reuseAddress);
32 MD5ServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize);
35 MD5ServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth);
38 MD5ServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis);
41 MD5ServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead);
44 MD5ServerSocketChannelConfig setWriteSpinCount(int writeSpinCount);
47 MD5ServerSocketChannelConfig setAllocator(ByteBufAllocator allocator);
50 MD5ServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator);
53 MD5ServerSocketChannelConfig setAutoRead(boolean autoRead);
56 MD5ServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator);