Repository navigation
Commit 3ccb3a7
committed
NetworkStream now rejects non-stream sockets
- Constructor throws IOException when socket type is not Stream, matching .NET.
- Remove unreachable datagram branches from Read and Write.
- Remove redundant socket type check from SslStream constructor.
- Fix exception documentation (drop nonblocking clause, stray characters, wrong conditions).
- Add NetworkStream constructor tests.1 parent c8e53ad commit 3ccb3a7
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
341 | 338 | | |
342 | 339 | | |
343 | 340 | | |
344 | | - | |
0 commit comments