Click here to Skip to main content
15,905,682 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: .Net Date Compare Pin
David Skelly17-Jun-09 22:20
David Skelly17-Jun-09 22:20 
GeneralRe: .Net Date Compare Pin
Tristan Rhodes17-Jun-09 22:56
Tristan Rhodes17-Jun-09 22:56 
GeneralRe: .Net Date Compare Pin
David Skelly18-Jun-09 4:42
David Skelly18-Jun-09 4:42 
AnswerRe: .Net Date Compare Pin
PIEBALDconsult18-Jun-09 6:19
mvePIEBALDconsult18-Jun-09 6:19 
GeneralRe: .Net Date Compare Pin
Luc Pattyn19-Jun-09 4:25
sitebuilderLuc Pattyn19-Jun-09 4:25 
GeneralRe: .Net Date Compare Pin
PIEBALDconsult19-Jun-09 4:55
mvePIEBALDconsult19-Jun-09 4:55 
QuestionShut Down Local Computer Using VB.NET Pin
shinoopmathew16-Jun-09 22:59
shinoopmathew16-Jun-09 22:59 
AnswerRe: Shut Down Local Computer Using VB.NET Pin
Henry Minute16-Jun-09 23:11
Henry Minute16-Jun-09 23:11 
AnswerRe: Shut Down Local Computer Using VB.NET Pin
Vasudevan Deepak Kumar17-Jun-09 1:36
Vasudevan Deepak Kumar17-Jun-09 1:36 
AnswerRe: Shut Down Local Computer Using VB.NET Pin
K030617-Jun-09 2:45
K030617-Jun-09 2:45 
AnswerRe: Shut Down Local Computer Using VB.NET Pin
krunal2521-Dec-09 18:41
krunal2521-Dec-09 18:41 
QuestionExport to excel is not working on deploying server Pin
binod kumar16-Jun-09 20:52
binod kumar16-Jun-09 20:52 
AnswerCross Post! Pin
Henry Minute16-Jun-09 23:08
Henry Minute16-Jun-09 23:08 
Questionhow to open a word document? Pin
kvalli16-Jun-09 20:30
kvalli16-Jun-09 20:30 
QuestionSimilar to mail box Pin
anandkb16-Jun-09 19:47
anandkb16-Jun-09 19:47 
AnswerRe: Similar to mail box Pin
Colin Angus Mackay17-Jun-09 14:40
Colin Angus Mackay17-Jun-09 14:40 
QuestionDatagridview Keypress Pin
neha.lad16-Jun-09 19:24
neha.lad16-Jun-09 19:24 
AnswerRe: Datagridview Keypress Pin
Henry Minute16-Jun-09 23:34
Henry Minute16-Jun-09 23:34 
QuestionModal window and SDI window in Compact framework Pin
rajesh992216-Jun-09 1:04
rajesh992216-Jun-09 1:04 
QuestionAuto fire method when assembly is loaded Pin
nick_dodd16-Jun-09 0:40
nick_dodd16-Jun-09 0:40 
AnswerRe: Auto fire method when assembly is loaded Pin
Luc Pattyn16-Jun-09 1:45
sitebuilderLuc Pattyn16-Jun-09 1:45 
GeneralRe: Auto fire method when assembly is loaded Pin
nick_dodd16-Jun-09 2:35
nick_dodd16-Jun-09 2:35 
QuestionPassing an open TCP socket to another application Pin
supercat915-Jun-09 6:30
supercat915-Jun-09 6:30 
AnswerRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 6:40
Mark Salsbery15-Jun-09 6:40 
GeneralRe: Passing an open TCP socket to another application Pin
supercat915-Jun-09 7:17
supercat915-Jun-09 7:17 
Thank you. That looks very useful, at least in the case of handing off the socket to an already-open application. What would be the preferred method of handing off a socket to an application which isn't yet launched (assuming .net 2.0)? I've not used named pipes, since the managed API's for those FWIU only appeared in .net 3.5, though if they're easy to use from .net that might be handy. Otherwise I could have the newly-launched application "telnet" into the service port, say "hey I'm here, this is my process ID, and I'd like a socket if you have one"; the service could then give the socket to the new application.

One of my design goals is to minimize the possibility of the service imposing an excessive burden on the system even if things go wrong (e.g. a connection comes in and the service launches the application, but the application never gets around to dealing with the port). I don't particularly like the idea of the service having to hold the connection until the application gets around to asking for it, but it wouldn't be too horrible. I could probably have a 30-second timeout or something on it (if the application hasn't picked up the socket by then, the remote device that's "telnet"ing in will likely give up anyway), but that adds some complexity.

BTW, what's the best style for using the Select function? Creating three lists from scratch each time I want to poll for data, and then using a dictionary to map the connections in each list back to my own connection-info objects seems rather klunky.

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.