Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
Questionwhat is this mean Pin
angels77714-May-08 15:07
angels77714-May-08 15:07 
AnswerRe: what is this mean Pin
Christian Graus14-May-08 15:21
protectorChristian Graus14-May-08 15:21 
JokeRe: what is this mean Pin
Vikram A Punathambekar14-May-08 19:07
Vikram A Punathambekar14-May-08 19:07 
AnswerRe: what is this mean Pin
Ashfield14-May-08 21:17
Ashfield14-May-08 21:17 
QuestionC# Async Socket Disconnect / Reconnect Pin
Sean Cornell14-May-08 13:34
Sean Cornell14-May-08 13:34 
AnswerRe: C# Async Socket Disconnect / Reconnect Pin
Peter Josefsson Sweden14-May-08 15:22
Peter Josefsson Sweden14-May-08 15:22 
GeneralRe: C# Async Socket Disconnect / Reconnect Pin
Sean Cornell15-May-08 0:49
Sean Cornell15-May-08 0:49 
GeneralRe: C# Async Socket Disconnect / Reconnect Pin
Peter Josefsson Sweden16-May-08 12:30
Peter Josefsson Sweden16-May-08 12:30 
Ummm... I overlooked the endpoint thing. My TCP clients don't use the Endpoint class - I just use hostnames (or IP addresses as strings) and a port number. I also only use the TcpClient class (and the socket it presents), and I don't do asynchronous calls (as I'm already on a separate thread) although I'm working on a version that does. I recreate the TcpClient object (and anything depending on it) whenever the connection stalls (as per other peoples specs) or fails.

Just a thought (without looking in the docs): Can you recreate the endpoint object from IP address/hostname and port number before recreating the socket? Like I said, the client side picks a random available source port each time a connection is established, so it doesn't matter how many old connections to the same server (and service/port) that are lingering (yes, there's a "4 connections per destination" maximum enforced by Windows in order to make life a wee bit harder for network viruses, but that shouldn't be your problem) in the TCP/IP stack itself.

Again, this was without looking in the docs - I may be completely off...

--
Peter

QuestionWinSxS Pin
Member 391904914-May-08 12:58
Member 391904914-May-08 12:58 
AnswerRe: WinSxS Pin
Christian Graus14-May-08 13:30
protectorChristian Graus14-May-08 13:30 
Question[Message Deleted] Pin
AAKAra14-May-08 10:23
AAKAra14-May-08 10:23 
AnswerRe: comparing the bit in C# Pin
PIEBALDconsult14-May-08 10:30
mvePIEBALDconsult14-May-08 10:30 
AnswerRe: [Message Deleted] Pin
Vikram A Punathambekar14-May-08 19:08
Vikram A Punathambekar14-May-08 19:08 
QuestionOnMouseMove event fires continually - Problem [modified] Pin
eliohim200514-May-08 10:20
eliohim200514-May-08 10:20 
AnswerRe: OnMouseMove event fires continually - Problem Pin
Ennis Ray Lynch, Jr.14-May-08 11:50
Ennis Ray Lynch, Jr.14-May-08 11:50 
GeneralRe: OnMouseMove event fires continually - Problem Pin
eliohim200515-May-08 4:05
eliohim200515-May-08 4:05 
GeneralRe: OnMouseMove event fires continually - Problem Pin
Ennis Ray Lynch, Jr.15-May-08 6:09
Ennis Ray Lynch, Jr.15-May-08 6:09 
QuestionItem already exist deployment error Pin
f_coy14-May-08 8:07
f_coy14-May-08 8:07 
Questionhow to give up cpu cycles Pin
LouMattera14-May-08 8:03
LouMattera14-May-08 8:03 
AnswerRe: how to give up cpu cycles Pin
Guffa14-May-08 8:16
Guffa14-May-08 8:16 
AnswerRe: how to give up cpu cycles Pin
Luc Pattyn14-May-08 9:35
sitebuilderLuc Pattyn14-May-08 9:35 
Questionproblem converting to object Pin
humayunlalzad14-May-08 7:46
humayunlalzad14-May-08 7:46 
AnswerRe: problem converting to object Pin
Csharp™14-May-08 8:30
Csharp™14-May-08 8:30 
GeneralRe: problem converting to object Pin
Guffa14-May-08 9:35
Guffa14-May-08 9:35 
AnswerRe: problem converting to object Pin
Guffa14-May-08 9:40
Guffa14-May-08 9:40 

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.