Lines Matching refs:msock
183 mtcp_set_uctx(mctx_t mctx, int msock, void *uctx) in mtcp_set_uctx() argument
196 if (msock < 0 || msock >= g_config.mos->max_concurrency) { in mtcp_set_uctx()
197 TRACE_API("Socket id %d out of range.\n", msock); in mtcp_set_uctx()
202 socket_map_t socket = &mtcp->msmap[msock]; in mtcp_set_uctx()
211 mtcp_get_uctx(mctx_t mctx, int msock) in mtcp_get_uctx() argument
227 if (msock < 0 || msock >= g_config.mos->max_concurrency) { in mtcp_get_uctx()
228 TRACE_API("Socket id %d out of range.\n", msock); in mtcp_get_uctx()
233 socket_map_t socket = &mtcp->msmap[msock]; in mtcp_get_uctx()
244 mtcp_peek(mctx_t mctx, int msock, int side, char *buf, size_t len) in mtcp_peek() argument
265 sock = &mtcp->msmap[msock]; in mtcp_peek()
361 mtcp_ppeek(mctx_t mctx, int msock, int side, in mtcp_ppeek() argument
382 sock = &mtcp->msmap[msock]; in mtcp_ppeek()