1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _OSL_SOCKETIMPL_H_
21 #define _OSL_SOCKETIMPL_H_
23 #include <osl/socket.h>
24 #include <osl/interlck.h>
30 /*****************************************************************************/
32 /*****************************************************************************/
33 #define OSL_SOCKET_FLAGS_NONBLOCKING 0x0001
35 struct oslSocketImpl
{
36 oslInterlockedCount m_nRefCount
;
41 struct oslSocketAddrImpl
43 struct sockaddr m_sockaddr
;
44 oslInterlockedCount m_nRefCount
;
47 oslSocket
__osl_createSocketImpl(SOCKET Socket
);
48 void __osl_destroySocketImpl(oslSocket pImpl
);
50 /*****************************************************************************/
51 /* oslSocketDialupImpl */
52 /*****************************************************************************/
53 #define INTERNET_MODULE_NAME "wininet.dll"
55 #define INTERNET_CONNECTION_MODEM 0x00000001L
56 #define INTERNET_CONNECTION_LAN 0x00000002L
57 #define INTERNET_CONNECTION_HANGUP 0x80000000L
59 typedef DWORD (WINAPI
*INTERNETATTEMPTCONNECT
) (
61 typedef BOOL (WINAPI
*INTERNETAUTODIAL
) (
62 DWORD dwFlags
, DWORD dwReserved
);
63 typedef BOOL (WINAPI
*INTERNETAUTODIALHANGUP
) (
65 typedef BOOL (WINAPI
*INTERNETGETCONNECTEDSTATE
) (
66 LPDWORD lpdwFlags
, DWORD dwReserved
);
68 typedef struct osl_socket_dialup_impl_st
70 CRITICAL_SECTION m_hMutex
;
72 INTERNETATTEMPTCONNECT m_pfnAttemptConnect
;
73 INTERNETAUTODIAL m_pfnAutodial
;
74 INTERNETAUTODIALHANGUP m_pfnAutodialHangup
;
75 INTERNETGETCONNECTEDSTATE m_pfnGetConnectedState
;
77 } oslSocketDialupImpl
;
79 /*****************************************************************************/
81 /*****************************************************************************/
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */