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

.NET (Core and Framework)

 
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.
GeneralRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 8:02
Mark Salsbery15-Jun-09 8:02 
GeneralAsync socket I/O Pin
supercat915-Jun-09 8:23
supercat915-Jun-09 8:23 
GeneralRe: Async socket I/O Pin
Mark Salsbery15-Jun-09 9:21
Mark Salsbery15-Jun-09 9:21 
GeneralRe: Async socket I/O Pin
supercat915-Jun-09 10:01
supercat915-Jun-09 10:01 
GeneralRe: Async socket I/O Pin
Mark Salsbery15-Jun-09 10:16
Mark Salsbery15-Jun-09 10:16 
GeneralRe: Async socket I/O Pin
supercat915-Jun-09 11:39
supercat915-Jun-09 11:39 
GeneralRe: Passing an open TCP socket to another application Pin
led mike15-Jun-09 9:17
led mike15-Jun-09 9:17 
GeneralRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 9:24
Mark Salsbery15-Jun-09 9:24 
GeneralRe: Passing an open TCP socket to another application Pin
supercat915-Jun-09 9:49
supercat915-Jun-09 9:49 
GeneralRe: Passing an open TCP socket to another application Pin
led mike15-Jun-09 10:29
led mike15-Jun-09 10:29 
Questionhow to create crystal report in vb.net using sql server 2005. Pin
Neeta Sen12-Jun-09 21:58
Neeta Sen12-Jun-09 21:58 
Questionrearrange database Serial number after deleting a row Pin
Neeta Sen12-Jun-09 21:28
Neeta Sen12-Jun-09 21:28 
AnswerRe: rearrange database Serial number after deleting a row Pin
Eddy Vluggen13-Jun-09 0:57
professionalEddy Vluggen13-Jun-09 0:57 
AnswerRe: rearrange database Serial number after deleting a row Pin
Dave Kreskowiak13-Jun-09 2:07
mveDave Kreskowiak13-Jun-09 2:07 
AnswerRe: rearrange database Serial number after deleting a row Pin
David Skelly14-Jun-09 22:29
David Skelly14-Jun-09 22:29 
QuestionReflecting attribute metadata from an instance of the type, not the type itself Pin
Gregory Gadow12-Jun-09 5:51
Gregory Gadow12-Jun-09 5:51 
AnswerProblem figured out Pin
Gregory Gadow12-Jun-09 7:21
Gregory Gadow12-Jun-09 7:21 

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.