MCPcopy Create free account
hub / github.com/Cyinx/einx / RpcCall

Method RpcCall

network/tcp_conn.go:97–108  ·  view source on GitHub ↗
(msg_id ProtoTypeID, b []byte)

Source from the content-addressed store, hash-verified

95}
96
97func (this *TcpConn) RpcCall(msg_id ProtoTypeID, b []byte) bool {
98 if this.IsClosed() == true {
99 return false
100 }
101
102 wrapper := write_pool.Get().(*WriteWrapper)
103 wrapper.msg_type = 'P'
104 wrapper.msg_id = msg_id
105 wrapper.buffer = b
106
107 return this.do_push_write(wrapper)
108}
109
110func (this *TcpConn) LocalAddr() net.Addr {
111 return nil

Callers

nothing calls this directly

Calls 3

IsClosedMethod · 0.95
do_push_writeMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected