[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62522] eXosip2.5.3 Unable to receive any packets as a TCP server
From: |
monktan |
Subject: |
[bug #62522] eXosip2.5.3 Unable to receive any packets as a TCP server |
Date: |
Wed, 25 May 2022 08:18:24 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62522>
Summary: eXosip2.5.3 Unable to receive any packets as a TCP
server
Project: GNU GRUB
Submitted by: monktan
Submitted on: Wed 25 May 2022 12:18:22 PM UTC
Category: None
Severity: Major
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: monktan
Originator Email: 757362967@qq.com
Open/Closed: Open
Release:
Release: other
Discussion Lock: Any
Reproducibility: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 25 May 2022 12:18:22 PM UTC By: monktan <monktan>
tcp server codeļ¼
_eTcpCtx = eXosip_malloc();
if (!_eTcpCtx) {
ErrorL << "eXosip_malloc tcp failed";
return -1;
}
int32_t result = -1;
result = eXosip_init(_eTcpCtx);
if (result != OSIP_SUCCESS) {
ErrorL << "eXosip_init failed";
osip_free(_eTcpCtx);
_eTcpCtx = nullptr;
return -1;
}
eXosip_set_user_agent(_eTcpCtx, _gbsAgentName.c_str());
InfoL << "eXosip_init tcp success";
result = eXosip_listen_addr(_eTcpCtx,
IPPROTO_TCP,
nullptr,
_gbsConfig.port,
AF_INET,
0);
if (result != OSIP_SUCCESS) {
ErrorL << "eXosip_listen_addr failed";
eXosip_reset_transports(_eTcpCtx);
eXosip_quit(_eTcpCtx);
osip_free(_eTcpCtx);
_eTcpCtx = nullptr;
return -1;
}
while (!_isNeedStop) {
eXosip_event_t *event = nullptr;
event = eXosip_event_wait(peCtx, 0, 0);
if (!event) {
osip_usleep(100000);
continue;
}
dispatchEvent(peCtx, event);
eXosip_event_free(event);
}
tcp port listeningļ¼
gbs 9086 xxx 31u IPv4 0xb4942c651d611321 0t0 UDP *:30000
gbs 9086 xxx 37u IPv4 0xb4942c605c9128f9 0t0 TCP *:30000
(LISTEN)
I'm not sure if it's my code. Please reply. Thank you
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62522>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #62522] eXosip2.5.3 Unable to receive any packets as a TCP server,
monktan <=