コード例 #1
0
ファイル: client.go プロジェクト: raff/muxado
// Client returns a new muxado client-side connection using conn as the transport.
func Client(conn net.Conn) Session {
	return &sessionAdaptor{proto.NewSession(conn, proto.NewStream, true)}
}
コード例 #2
0
ファイル: server.go プロジェクト: raff/muxado
// Server returns a muxado server session using conn as the transport.
func Server(conn net.Conn) Session {
	return &sessionAdaptor{proto.NewSession(conn, proto.NewStream, false)}
}