blob: 17751ca79b00695baf564f566c0d227537033b27 [file] [log] [blame]
Rashmica Gupta04273e92023-06-16 16:03:37 +10001#ifndef LIBPLDM_SRC_TRANSPORT_SOCKET_H
2#define LIBPLDM_SRC_TRANSPORT_SOCKET_H
3
4struct pldm_socket_sndbuf {
5 int size;
6 int socket;
7 int max_size;
8};
9
10int pldm_socket_sndbuf_init(struct pldm_socket_sndbuf *ctx, int socket);
11int pldm_socket_sndbuf_accomodate(struct pldm_socket_sndbuf *ctx, int msg_len);
12int pldm_socket_sndbuf_get(struct pldm_socket_sndbuf *ctx);
13
14#endif // LIBPLDM_SRC_TRANSPORT_SOCKET_H