コード例 #1
0
ファイル: netbuf.c プロジェクト: respu/MainMemory
void
mm_netbuf_prepare(struct mm_netbuf_socket *sock)
{
	mm_core_t core = sock->sock.event.core;
	mm_arena_t arena = mm_core_getarena(core);
	mm_buffer_prepare(&sock->rbuf, arena, core);
	mm_buffer_prepare(&sock->tbuf, arena, core);
}
コード例 #2
0
mm_netbuf_prepare(struct mm_netbuf_socket *sock)
{
	mm_buffer_prepare(&sock->rxbuf);
	mm_buffer_prepare(&sock->txbuf);
}