Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-rpc/transport-apple.h # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-rpc / transport-apple.h` 27 lines ยท 886 bytes Raw Blame History 1 #pragma once 2 3 #include 4 #include 5 #include 6 7 struct apple_rdma { 8 // target_gid is 16 bytes in, caps is RPC_CONN_CAPS_SIZE bytes out. 9 static std::unique_ptr probe(int fd, const uint8_t * target_gid, uint8_t * caps); 10 ~apple_rdma(); 11 12 // Peer endpoint from its caps, which must be non-zero: this blocks on a 13 // readiness handshake over fd that the peer only joins if it also has RDMA. 14 bool activate(const uint8_t * caps); 15 16 bool send(const void * data, size_t size); 17 bool recv(void * data, size_t size); 18 // Post the trailing partial frame; must be called at every message boundary. 19 bool flush(); 20 // True once the connection has failed; the caller should drop the socket. 21 bool broken() const; 22 23 private: 24 struct impl; 25 explicit apple_rdma(std::unique_ptr p); 26 std::unique_ptr pimpl; 27 };