MCPcopy
hub / github.com/davyxu/cellnet / TCPAcceptor

Interface TCPAcceptor

peer_tcp.go:18–28  ·  view source on GitHub ↗

TCP接受器,具备会话访问

Source from the content-addressed store, hash-verified

16
17// TCP接受器,具备会话访问
18type TCPAcceptor interface {
19 GenericPeer
20
21 // 访问会话
22 SessionAccessor
23
24 TCPSocketOption
25
26 // 查看当前侦听端口,使用host:0 作为Address时,socket底层自动分配侦听端口
27 Port() int
28}
29
30// TCP连接器
31type TCPConnector interface {

Callers

nothing calls this directly

Implementers 8

wsSyncConnectorpeer/gorillaws/syncconn.go
wsAcceptorpeer/gorillaws/acceptor.go
wsConnectorpeer/gorillaws/connector.go
httpAcceptorpeer/http/acceptor.go
udpAcceptorpeer/udp/acceptor.go
tcpSyncConnectorpeer/tcp/syncconn.go
tcpAcceptorpeer/tcp/acceptor.go
tcpConnectorpeer/tcp/connector.go

Calls

no outgoing calls

Tested by

no test coverage detected