Click here to Skip to main content
15,886,110 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 560 Pin
StarNamer@work30-Dec-22 15:28
professionalStarNamer@work30-Dec-22 15:28 
GeneralRe: Wordle 560 Pin
OriginalGriff30-Dec-22 19:32
mveOriginalGriff30-Dec-22 19:32 
GeneralRe: Wordle 560 Pin
pkfox30-Dec-22 21:43
professionalpkfox30-Dec-22 21:43 
GeneralRe: Wordle 560 Pin
Cp-Coder31-Dec-22 2:34
Cp-Coder31-Dec-22 2:34 
GeneralRe: Wordle 560 Pin
jmaida31-Dec-22 14:48
jmaida31-Dec-22 14:48 
GeneralHave a nice weekend, the Bates, Billie Jean Pin
0x01AA30-Dec-22 7:31
mve0x01AA30-Dec-22 7:31 
GeneralRe: Have a nice weekend, the Bates, Billie Jean Pin
trønderen30-Dec-22 9:27
trønderen30-Dec-22 9:27 
QuestionThis is not a programming question... Pin
dandy7230-Dec-22 5:31
dandy7230-Dec-22 5:31 
...at least, it doesn't involve any code. It's more of a "would you do it this way" type of question...

Over a decade ago, I wrote a small app that needed to broadcast simple notifications to other systems across my LAN. I came across mailslots, a mechanism that's been built into Windows for years, and both client and server samples were trivial enough to be considered no-brainers.

A few days ago, being on holidays, I spent a bit of time reviewing that code, rebuilding it using newer versions of .NET, and implementing some minor fixes (completely unrelated to mailslots).

But it got me thinking: Are mailslots still a worthwhile mechanism? I've never come across any formal documentation as to how long Windows would still be supporting them for, and on Windows 10/Server 2022, my code still works rather nicely. It's simple and elegant, low-overhead, and does the job.

I guess it could boil down to just that, "does it do the job", and leave it at that. Still, I'm curious - does anyone know of a reason to proactively avoid this mechanism? It's using UDP, but I've never lost a single packet (and even if it did, it's not vital to any operation). It's using the standard Windows file share port, I believe, so it's unlikely to be blocked, at least within a private LAN. It's not inherently secure, but it's not transporting any confidential data. And even if it had to, there's plenty of ways a message could be encrypted.

What argument might you use to convince someone to use another mechanism? The current (?) MS documentation on mailslots also mentions named pipes and Windows Sockets. Sockets aren't exactly trivial (or rather, not as trivial), and TBH I've never tried to use named pipes so I'm not in a position to make an honest judgement.

I guess I'm just fishing for pro/con arguments. What say you?
AnswerRe: This is not a programming question... Pin
Gerry Schmitz30-Dec-22 5:53
mveGerry Schmitz30-Dec-22 5:53 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 6:38
dandy7231-Dec-22 6:38 
AnswerRe: This is not a programming question... Pin
Rick York30-Dec-22 6:12
mveRick York30-Dec-22 6:12 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 6:33
dandy7231-Dec-22 6:33 
AnswerRe: This is not a programming question... Pin
raddevus30-Dec-22 6:24
mvaraddevus30-Dec-22 6:24 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 6:11
dandy7231-Dec-22 6:11 
GeneralRe: This is not a programming question... Pin
jschell2-Jan-23 14:02
jschell2-Jan-23 14:02 
AnswerRe: This is not a programming question... Pin
0x01AA30-Dec-22 6:56
mve0x01AA30-Dec-22 6:56 
GeneralRe: This is not a programming question... Pin
trønderen30-Dec-22 7:01
trønderen30-Dec-22 7:01 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 5:40
dandy7231-Dec-22 5:40 
JokeRe: This is not a programming question... Pin
dandy7231-Dec-22 6:35
dandy7231-Dec-22 6:35 
AnswerRe: This is not a programming question... Pin
trønderen30-Dec-22 7:15
trønderen30-Dec-22 7:15 
GeneralRe: This is not a programming question... Pin
jmaida30-Dec-22 14:19
jmaida30-Dec-22 14:19 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 5:42
dandy7231-Dec-22 5:42 
AnswerRe: This is not a programming question... Pin
englebart30-Dec-22 10:25
professionalenglebart30-Dec-22 10:25 
GeneralRe: This is not a programming question... Pin
PIEBALDconsult30-Dec-22 10:31
mvePIEBALDconsult30-Dec-22 10:31 
GeneralRe: This is not a programming question... Pin
Ravi Bhavnani31-Dec-22 18:11
professionalRavi Bhavnani31-Dec-22 18:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.