Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
QuestionSockets in C# Pin
mrithula814-Mar-09 4:42
mrithula814-Mar-09 4:42 
AnswerRe: Sockets in C# Pin
Luc Pattyn14-Mar-09 5:01
sitebuilderLuc Pattyn14-Mar-09 5:01 
AnswerRe: Sockets in C# [modified] Pin
Member 349379914-Mar-09 7:02
Member 349379914-Mar-09 7:02 
GeneralRe: Sockets in C# Pin
mrithula814-Mar-09 20:21
mrithula814-Mar-09 20:21 
QuestionRe: Sockets in C# Pin
Jimmanuel15-Mar-09 1:14
Jimmanuel15-Mar-09 1:14 
GeneralRe: Sockets in C# [modified] Pin
mrithula814-Mar-09 22:06
mrithula814-Mar-09 22:06 
GeneralRe: Sockets in C# Pin
mrithula817-Mar-09 1:07
mrithula817-Mar-09 1:07 
GeneralRe: Sockets in C# Pin
mrithula817-Mar-09 4:04
mrithula817-Mar-09 4:04 
Hi I used the Thread.Sleep()
public UdpServer()
        {
            try
            {
                startServer = new Thread(new ThreadStart(start_server));
                startServer.Start();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                //startServer.Abort();
            }

           try
            {
                Thread.Sleep(20000);
               
                startServer2 = new Thread(new ThreadStart(start_server2));
               
                startServer2.Start();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                //startServer2.Abort();
            }

        }
Im getting the output as
Waiting for client...
hai
Message received....
hello
Sent ack

Waiting for client2...
hai

At this it shows"existing connection was forcibly closed by the remote host".Please give me your suggestion
QuestionHow to align the control in the centre. Pin
Pankaj Nikam14-Mar-09 4:21
professionalPankaj Nikam14-Mar-09 4:21 
AnswerRe: How to align the control in the centre. Pin
Xmen Real 14-Mar-09 5:51
professional Xmen Real 14-Mar-09 5:51 
GeneralRe: How to align the control in the centre. Pin
Pankaj Nikam14-Mar-09 7:52
professionalPankaj Nikam14-Mar-09 7:52 
AnswerRe: How to align the control in the centre. Pin
Luis Alonso Ramos14-Mar-09 9:47
Luis Alonso Ramos14-Mar-09 9:47 
QuestionMaximize and not hide taskbar Pin
David Muir14-Mar-09 3:35
David Muir14-Mar-09 3:35 
AnswerRe: Maximize and not hide taskbar Pin
PIEBALDconsult14-Mar-09 4:18
mvePIEBALDconsult14-Mar-09 4:18 
GeneralRe: Maximize and not hide taskbar Pin
David Muir14-Mar-09 4:25
David Muir14-Mar-09 4:25 
GeneralRe: Maximize and not hide taskbar Pin
PIEBALDconsult14-Mar-09 4:51
mvePIEBALDconsult14-Mar-09 4:51 
GeneralRe: Maximize and not hide taskbar Pin
Luc Pattyn14-Mar-09 4:59
sitebuilderLuc Pattyn14-Mar-09 4:59 
AnswerRe: Maximize and not hide taskbar Pin
Luc Pattyn14-Mar-09 4:24
sitebuilderLuc Pattyn14-Mar-09 4:24 
GeneralRe: Maximize and not hide taskbar Pin
David Muir14-Mar-09 4:37
David Muir14-Mar-09 4:37 
AnswerRe: Maximize and not hide taskbar Pin
Enquiren12-Sep-09 22:05
Enquiren12-Sep-09 22:05 
Questionhow to cause current application to close upon arrival of new updated application ? Pin
shabya14-Mar-09 3:14
shabya14-Mar-09 3:14 
AnswerRe: how to cause current application to close upon arrival of new updated application ? Pin
Navneet Hegde14-Mar-09 8:59
Navneet Hegde14-Mar-09 8:59 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
shabya14-Mar-09 9:31
shabya14-Mar-09 9:31 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
Navneet Hegde15-Mar-09 0:13
Navneet Hegde15-Mar-09 0:13 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
shabya15-Mar-09 11:27
shabya15-Mar-09 11:27 

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.