Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 338 of file rostcp.c.
Referenced by TCPConnect(), and TCPListen().
{ struct lwip_callback_msg *msg; err_t ret; msg = ExAllocateFromNPagedLookasideList(&MessageLookasideList); if (msg) { KeInitializeEvent(&msg->Event, NotificationEvent, FALSE); msg->Input.Bind.Connection = Connection; msg->Input.Bind.IpAddress = ipaddr; msg->Input.Bind.Port = port; tcpip_callback_with_block(LibTCPBindCallback, msg, 1); if (WaitForEventSafely(&msg->Event)) ret = msg->Output.Bind.Error; else ret = ERR_CLSD; ExFreeToNPagedLookasideList(&MessageLookasideList, msg); return ret; } return ERR_MEM; }