Fixed AddMulticast
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@172 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
2a96820027
commit
c15fcb90b4
12
blcksock.pas
12
blcksock.pas
@ -1,9 +1,9 @@
|
||||
{==============================================================================|
|
||||
| Project : Ararat Synapse | 009.009.000 |
|
||||
| Project : Ararat Synapse | 009.009.001 |
|
||||
|==============================================================================|
|
||||
| Content: Library base |
|
||||
|==============================================================================|
|
||||
| Copyright (c)1999-2012, Lukas Gebauer |
|
||||
| Copyright (c)1999-2013, Lukas Gebauer |
|
||||
| All rights reserved. |
|
||||
| |
|
||||
| Redistribution and use in source and binary forms, with or without |
|
||||
@ -33,7 +33,7 @@
|
||||
| DAMAGE. |
|
||||
|==============================================================================|
|
||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||
| Portions created by Lukas Gebauer are Copyright (c)1999-2012. |
|
||||
| Portions created by Lukas Gebauer are Copyright (c)1999-2013. |
|
||||
| All Rights Reserved. |
|
||||
|==============================================================================|
|
||||
| Contributor(s): |
|
||||
@ -3650,7 +3650,8 @@ begin
|
||||
else
|
||||
begin
|
||||
Multicast.imr_multiaddr.S_addr := swapbytes(strtoip(MCastIP));
|
||||
Multicast.imr_interface.S_addr := INADDR_ANY;
|
||||
// Multicast.imr_interface.S_addr := INADDR_ANY;
|
||||
Multicast.imr_interface.S_addr := FLocalSin.sin_addr.S_addr;
|
||||
SockCheck(synsock.SetSockOpt(FSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
|
||||
PAnsiChar(@Multicast), SizeOf(Multicast)));
|
||||
end;
|
||||
@ -3676,7 +3677,8 @@ begin
|
||||
else
|
||||
begin
|
||||
Multicast.imr_multiaddr.S_addr := swapbytes(strtoip(MCastIP));
|
||||
Multicast.imr_interface.S_addr := INADDR_ANY;
|
||||
// Multicast.imr_interface.S_addr := INADDR_ANY;
|
||||
Multicast.imr_interface.S_addr := FLocalSin.sin_addr.S_addr;
|
||||
SockCheck(synsock.SetSockOpt(FSocket, IPPROTO_IP, IP_DROP_MEMBERSHIP,
|
||||
PAnsiChar(@Multicast), SizeOf(Multicast)));
|
||||
end;
|
||||
|
Loading…
x
Reference in New Issue
Block a user