Click here to Skip to main content
15,915,042 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi6-Jul-07 3:05
jafingi6-Jul-07 3:05 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
Martin#6-Jul-07 8:02
Martin#6-Jul-07 8:02 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
ken.tachyon6-Jul-07 10:20
ken.tachyon6-Jul-07 10:20 
QuestionDatagrid in deviceApplication Pin
neer14-Jul-07 2:17
neer14-Jul-07 2:17 
AnswerRe: Datagrid in deviceApplication Pin
Diana Fernandez4-Jul-07 18:05
Diana Fernandez4-Jul-07 18:05 
GeneralRe: Datagrid in deviceApplication Pin
neer15-Jul-07 2:05
neer15-Jul-07 2:05 
QuestionTCP connection Pin
pmartike4-Jul-07 2:07
pmartike4-Jul-07 2:07 
AnswerRe: TCP connection Pin
Sean Michael Murphy4-Jul-07 16:19
Sean Michael Murphy4-Jul-07 16:19 
pmartike wrote:
If anyone knows how to make a TCP connection where the same client can connect and disconnect multiple times.


Sure.

In your code above, you're only listening for the first connection. Your Listen_Button_Click() method calls BeginReceive() and passes it the delegate for AcceptConn().

So far so good, but once that method is called your socket isn't listening anymore. You have to re-wire the callback by invoking BeginReceive() again to listen for more incoming connections.

Share and enjoy.
Sean
GeneralRe: TCP connection Pin
pmartike4-Jul-07 19:34
pmartike4-Jul-07 19:34 
QuestionWidth of a document Pin
WhiteGirl234-Jul-07 1:37
WhiteGirl234-Jul-07 1:37 
AnswerRe: Width of a document Pin
Colin Angus Mackay4-Jul-07 1:43
Colin Angus Mackay4-Jul-07 1:43 
JokeOr... Pin
CPallini4-Jul-07 2:39
mveCPallini4-Jul-07 2:39 
AnswerRe: Width of a document Pin
Pete O'Hanlon4-Jul-07 1:46
mvePete O'Hanlon4-Jul-07 1:46 
GeneralRe: Width of a document Pin
WhiteGirl234-Jul-07 1:53
WhiteGirl234-Jul-07 1:53 
GeneralRe: Width of a document Pin
Pete O'Hanlon4-Jul-07 2:05
mvePete O'Hanlon4-Jul-07 2:05 
GeneralRe: Width of a document Pin
Christian Graus4-Jul-07 4:18
protectorChristian Graus4-Jul-07 4:18 
Questionhow to do validation of radiobuttons Pin
srinivassam4-Jul-07 0:55
srinivassam4-Jul-07 0:55 
AnswerRe: how to do validation of radiobuttons Pin
Tamimi - Code4-Jul-07 1:10
Tamimi - Code4-Jul-07 1:10 
AnswerRe: how to do validation of radiobuttons Pin
Muhammad Gouda4-Jul-07 1:44
Muhammad Gouda4-Jul-07 1:44 
GeneralRe: how to do validation of radiobuttons Pin
Ravindra Nidhonkar4-Jul-07 1:57
Ravindra Nidhonkar4-Jul-07 1:57 
GeneralRe: how to do validation of radiobuttons Pin
srinivassam4-Jul-07 2:27
srinivassam4-Jul-07 2:27 
QuestionReversing String-Recursive Pin
jalburzicon4-Jul-07 0:31
jalburzicon4-Jul-07 0:31 
AnswerRe: Reversing String-Recursive Pin
Pete O'Hanlon4-Jul-07 0:41
mvePete O'Hanlon4-Jul-07 0:41 
AnswerRe: Reversing String-Recursive Pin
CPallini4-Jul-07 2:36
mveCPallini4-Jul-07 2:36 
AnswerRe: Reversing String-Recursive Pin
jalburzicon4-Jul-07 2:51
jalburzicon4-Jul-07 2:51 

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.