Skip to content

Commit 64058b0

Browse files
committed
[WP] Add UDP
1 parent 92177f3 commit 64058b0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Desktop/Tempest/Providers/Network/UdpConnectionlessListener.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ public virtual void Start (MessageTypes types)
8181
//if (Socket.OSSupportsIPv4)
8282
{
8383
this.socket4 = new Socket (AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
84+
#if !WINDOWS_PHONE
8485
this.socket4.EnableBroadcast = true;
86+
#endif
8587
this.socket4.Bind (new IPEndPoint (IPAddress.Any, this.port));
8688

8789
var args = new SocketAsyncEventArgs();
@@ -98,7 +100,9 @@ public virtual void Start (MessageTypes types)
98100
if (Socket.OSSupportsIPv6)
99101
{
100102
this.socket6 = new Socket (AddressFamily.InterNetworkV6, SocketType.Dgram, ProtocolType.Udp);
103+
#if !WINDOWS_PHONE
101104
this.socket6.EnableBroadcast = true;
105+
#endif
102106
this.socket6.Bind (new IPEndPoint (IPAddress.IPv6Any, this.port));
103107

104108
var args = new SocketAsyncEventArgs();

Windows Phone/Tempest/Tempest.WinPhone.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@
211211
<Compile Include="..\..\Desktop\Tempest\Protocol.cs">
212212
<Link>Protocol.cs</Link>
213213
</Compile>
214+
<Compile Include="..\..\Desktop\Tempest\Providers\Network\BufferPool.cs">
215+
<Link>Providers\Network\BufferPool.cs</Link>
216+
</Compile>
214217
<Compile Include="..\..\Desktop\Tempest\Providers\Network\ClientMessageSerializer.cs">
215218
<Link>Providers\Network\ClientMessageSerializer.cs</Link>
216219
</Compile>
@@ -223,6 +226,18 @@
223226
<Compile Include="..\..\Desktop\Tempest\Providers\Network\NetworkConnection.cs">
224227
<Link>Providers\Network\NetworkConnection.cs</Link>
225228
</Compile>
229+
<Compile Include="..\..\Desktop\Tempest\Providers\Network\ReliableQueue.cs">
230+
<Link>Providers\Network\ReliableQueue.cs</Link>
231+
</Compile>
232+
<Compile Include="..\..\Desktop\Tempest\Providers\Network\UdpClientConnection.cs">
233+
<Link>Providers\Network\UdpClientConnection.cs</Link>
234+
</Compile>
235+
<Compile Include="..\..\Desktop\Tempest\Providers\Network\UdpConnection.cs">
236+
<Link>Providers\Network\UdpConnection.cs</Link>
237+
</Compile>
238+
<Compile Include="..\..\Desktop\Tempest\Providers\Network\UdpConnectionlessListener.cs">
239+
<Link>Providers\Network\UdpConnectionlessListener.cs</Link>
240+
</Compile>
226241
<Compile Include="..\..\Desktop\Tempest\RSAAsymmetricKey.cs">
227242
<Link>RSAAsymmetricKey.cs</Link>
228243
</Compile>

0 commit comments

Comments
 (0)