Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1ec666e2
Kaydet (Commit)
1ec666e2
authored
Ara 06, 2012
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
MinGW: Fix BluetoothServer build.
Change-Id: Ie04d3c1703bcf22b746d1ee965f9ff3155a9ffeb
üst
9d7c1dcb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
CppunitTest_sd_uimpress.mk
sd/CppunitTest_sd_uimpress.mk
+1
-0
Library_sd.mk
sd/Library_sd.mk
+1
-0
BluetoothServer.cxx
sd/source/ui/remotecontrol/BluetoothServer.cxx
+12
-7
No files found.
sd/CppunitTest_sd_uimpress.mk
Dosyayı görüntüle @
1ec666e2
...
...
@@ -76,6 +76,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sd_uimpress,\
ifeq ($(OS),WNT)
$(eval $(call gb_CppunitTest_use_system_win32_libs,sd_uimpress,\
uuid \
ws2_32 \
))
endif
...
...
sd/Library_sd.mk
Dosyayı görüntüle @
1ec666e2
...
...
@@ -113,6 +113,7 @@ $(eval $(call gb_Library_use_externals,sd,\
ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_system_win32_libs,sd,\
uuid \
ws2_32 \
))
endif
...
...
sd/source/ui/remotecontrol/BluetoothServer.cxx
Dosyayı görüntüle @
1ec666e2
...
...
@@ -32,6 +32,11 @@
#include <ws2bth.h>
#endif
#ifdef __MINGW32__
// Value taken from http://msdn.microsoft.com/en-us/library/windows/desktop/ms738518%28v=vs.85%29.aspx
#define NS_BTH 16
#endif
// FIXME: move this into an external file and look at sharing definitions
// across OS's (i.e. UUID and port ).
// Also look at determining which ports are available.
...
...
@@ -311,16 +316,16 @@ void SAL_CALL BluetoothServer::run()
socklen_t
aRemoteAddrLen
=
sizeof
(
aRemoteAddr
);
while
(
true
)
{
int
bS
ocket
;
SOCKET
s
ocket
;
SAL_INFO
(
"sdremote.bluetooth"
,
"waiting on accept"
);
if
(
(
bSocket
=
accept
(
aSocket
,
(
sockaddr
*
)
&
aRemoteAddr
,
&
aRemoteAddrLen
))
<
0
)
if
(
(
socket
=
accept
(
aSocket
,
(
sockaddr
*
)
&
aRemoteAddr
,
&
aRemoteAddrLen
))
==
INVALID_SOCKET
)
{
SAL_WARN
(
"sdremote.bluetooth"
,
"accept failed with error
"
<<
bSocket
);
SAL_WARN
(
"sdremote.bluetooth"
,
"accept failed with error
"
<<
WSAGetLastError
()
);
close
(
aSocket
);
return
;
}
else
{
SAL_INFO
(
"sdremote.bluetooth"
,
"connection accepted"
);
Communicator
*
pCommunicator
=
new
Communicator
(
new
BufferedStreamSocket
(
bSocket
)
);
Communicator
*
pCommunicator
=
new
Communicator
(
new
BufferedStreamSocket
(
socket
)
);
mpCommunicators
->
push_back
(
pCommunicator
);
pCommunicator
->
launch
();
}
...
...
@@ -406,14 +411,14 @@ void SAL_CALL BluetoothServer::run()
int
aRemoteAddrLen
=
sizeof
(
aRemoteAddr
);
while
(
true
)
{
int
bS
ocket
;
if
(
(
bS
ocket
=
accept
(
aSocket
,
(
sockaddr
*
)
&
aRemoteAddr
,
&
aRemoteAddrLen
))
==
INVALID_SOCKET
)
SOCKET
s
ocket
;
if
(
(
s
ocket
=
accept
(
aSocket
,
(
sockaddr
*
)
&
aRemoteAddr
,
&
aRemoteAddrLen
))
==
INVALID_SOCKET
)
{
closesocket
(
aSocket
);
WSACleanup
();
return
;
}
else
{
Communicator
*
pCommunicator
=
new
Communicator
(
new
BufferedStreamSocket
(
bS
ocket
)
);
Communicator
*
pCommunicator
=
new
Communicator
(
new
BufferedStreamSocket
(
s
ocket
)
);
mpCommunicators
->
push_back
(
pCommunicator
);
pCommunicator
->
launch
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment