Skip to content

Commit 3aad4da

Browse files
authored
Fix missing setting of socket type (#68)
1 parent 35a5504 commit 3aad4da

File tree

1 file changed

+4
-0
lines changed
  • source/nanoFramework.System.Net/Sockets

1 file changed

+4
-0
lines changed

source/nanoFramework.System.Net/Sockets/Socket.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ public Socket Accept()
393393

394394
Socket socket = new Socket(socketHandle);
395395

396+
// creating a socket from Accept() is only possible for Stream sockets
397+
// have to set the type here
398+
socket._socketType = SocketType.Stream;
399+
396400
socket.m_localEndPoint = this.m_localEndPoint;
397401

398402
return socket;

0 commit comments

Comments
 (0)