bugGNU GRUB - Bugs: bug #62522, eXosip2.5.3 Unable to receive any...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62522: eXosip2.5.3 Unable to receive any packets as a TCP server

Submitter:  monktan <monktan>
Submitted:  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
Open/Closed:  Open Release:  other
Release:  Reproducibility:  None
Planned Release:  None

Wed 25 May 2022 12:18:22 PM UTC, original submission:  

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

monktan <monktan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by monktan (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12