MCPcopy Index your code
hub / github.com/eahydra/swnet

github.com/eahydra/swnet @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
141 symbols 241 edges 9 files 23 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

PacketReader (Interface)
PacketReader is used to unmarshal a complete packet from buff [1 implementers]
session.go
ReadStream (Interface)
(no doc) [2 implementers]
example/protocol/stream.go
PacketWriter (Interface)
PacketWriter is used to marshal packet into buff [1 implementers]
session.go
WriteStream (Interface)
(no doc) [2 implementers]
example/protocol/stream.go
PacketHandler (FuncType)
PacketHandler is used to process packet that recved from remote session When got a valid packet from PacketReader, you c
session.go
BodyWriter (Interface)
(no doc) [1 implementers]
example/protocol/protocol.go
PacketProtocol (Interface)
PacketProtocol just a composite interface
session.go
BodyReader (Interface)
(no doc) [1 implementers]
example/protocol/protocol.go

Core symbols most depended-on inside this repo

Left
called by 11
example/protocol/stream.go
Left
called by 11
example/protocol/stream.go
ReadUint32
called by 8
example/protocol/stream.go
WriteUint32
called by 8
example/protocol/stream.go
Write
called by 4
example/protocol/protocol.go
NewBigEndianStream
called by 4
example/protocol/stream.go
Close
called by 3
server.go
AsyncSend
called by 3
session.go

Shape

Method 101
Function 17
Struct 12
Interface 9
FuncType 2

Languages

Go100%

Modules by API surface

example/protocol/stream.go55 symbols
example/protocol/protocol_define.go32 symbols
session.go22 symbols
example/protocol/protocol.go12 symbols
example/protocol/dispatcher.go6 symbols
server.go5 symbols
example/protocol/body_readwriter.go5 symbols
example/server/server.go2 symbols
example/client/client.go2 symbols

For agents

$ claude mcp add swnet \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact