VirtualBox

Changeset 48279 in vbox


Ignore:
Timestamp:
Sep 4, 2013 6:01:00 PM (11 years ago)
Author:
vboxsync
Message:

Main/webservice: use SOCKET instead of int (gSOAP has this platform abstraction for quite some time), and make a few additional adjustments to get rid of some more Windows compilation specific warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r46651 r48279  
    451451     * @param s Socket from soap_accept() which has work to do.
    452452     */
    453     uint32_t add(int s)
    454     {
    455         uint32_t cItems;
     453    size_t add(SOCKET s)
     454    {
     455        size_t cItems;
    456456        util::AutoWriteLock qlock(m_mutex COMMA_LOCKVAL_SRC_POS);
    457457
     
    493493     * @return
    494494     */
    495     int get(size_t &cIdleThreads, size_t &cThreads)
     495    SOCKET get(size_t &cIdleThreads, size_t &cThreads)
    496496    {
    497497        while (1)
     
    503503            if (m_llSocketsQ.size())
    504504            {
    505                 int socket = m_llSocketsQ.front();
     505                SOCKET socket = m_llSocketsQ.front();
    506506                m_llSocketsQ.pop_front();
    507507                cIdleThreads = --m_cIdleThreads;
     
    543543    // A std::list abused as a queue; this contains the actual jobs to do,
    544544    // each int being a socket from soap_accept()
    545     std::list<int>          m_llSocketsQ;
     545    std::list<SOCKET>       m_llSocketsQ;
    546546};
    547547
     
    732732static unsigned long CRYPTO_id_function()
    733733{
    734     return RTThreadNativeSelf();
     734    return (unsigned long)RTThreadNativeSelf();
    735735}
    736736
     
    856856            // avoid EADDRINUSE on bind()
    857857
    858     int m, s; // master and slave sockets
     858    SOCKET m, s; // master and slave sockets
    859859    m = soap_bind(&soap,
    860860                  g_pcszBindToHost ? g_pcszBindToHost : "localhost",    // safe default host
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette