KcpHandshaker.java 1.82 KB
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
6
7
8
9
10
11
12
package emu.grasscutter.netty;

import java.net.SocketAddress;
import java.nio.channels.SelectableChannel;
import java.util.List;

import io.netty.channel.Channel;
import io.netty.channel.ChannelConfig;
import io.netty.channel.ChannelMetadata;
import io.netty.channel.ChannelOutboundBuffer;
import io.netty.channel.nio.AbstractNioMessageChannel;

13
public class KcpHandshaker extends AbstractNioMessageChannel {
Melledy's avatar
Melledy committed
14

15
	protected KcpHandshaker(Channel parent, SelectableChannel ch, int readInterestOp) {
Melledy's avatar
Melledy committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
		super(parent, ch, readInterestOp);
	}

	@Override
	public ChannelConfig config() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isActive() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public ChannelMetadata metadata() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected int doReadMessages(List<Object> buf) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	protected boolean doWriteMessage(Object msg, ChannelOutboundBuffer in) throws Exception {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	protected void doFinishConnect() throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected SocketAddress localAddress0() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected SocketAddress remoteAddress0() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected void doBind(SocketAddress localAddress) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void doDisconnect() throws Exception {
		// TODO Auto-generated method stub
		
	}

}