Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multicolored Text Pin
leppie21-Sep-02 1:51
leppie21-Sep-02 1:51 
GeneralRe: Multicolored Text Pin
Philip Fitzsimons23-Sep-02 7:14
Philip Fitzsimons23-Sep-02 7:14 
Questionhelp ( form message releted )? Pin
imran_rafique20-Sep-02 15:59
imran_rafique20-Sep-02 15:59 
AnswerRe: help ( form message releted )? Pin
James T. Johnson20-Sep-02 16:37
James T. Johnson20-Sep-02 16:37 
Questioncan any body help (releated to hook )? Pin
imran_rafique20-Sep-02 15:03
imran_rafique20-Sep-02 15:03 
Generalsocket timeout Pin
Rüpel20-Sep-02 3:27
Rüpel20-Sep-02 3:27 
GeneralRe: socket timeout Pin
Luis Alonso Ramos20-Sep-02 4:37
Luis Alonso Ramos20-Sep-02 4:37 
GeneralRe: socket timeout Pin
Rüpel22-Sep-02 22:23
Rüpel22-Sep-02 22:23 
...you have to send a datagram to yourself for the thread to unblock...

i've tried, but it doesn't seem to work. Frown | :(

what's wrong with this little console-application?

<br />
[STAThread]<br />
static void Main(string[] args)<br />
{<br />
  Class1 foo = new Class1();<br />
  foo.MainLoop();<br />
}<br />
<br />
public void MainLoop()<br />
{<br />
  Thread listener = new Thread(new ThreadStart(Listen));<br />
  listener.Start();<br />
<br />
  UdpClient sender = new UdpClient();<br />
  IPEndPoint self = new IPEndPoint(IPAddress.Loopback,7789);<br />
  sender.Send(new byte [] {0x01},1,self);<br />
<br />
  while (listener.IsAlive) ;<br />
}<br />
<br />
void Listen()<br />
{<br />
  UdpClient ear = new UdpClient();<br />
  IPEndPoint remote = new IPEndPoint(IPAddress.Any,0);<br />
  ear.Receive(ref remote);<br />
  Console.WriteLine("Got some Input from {0}",remote);<br />
}


:wq
Generalthis is not solved yet Pin
Rüpel23-Sep-02 4:00
Rüpel23-Sep-02 4:00 
GeneralRe: socket timeout Pin
Daniel Turini23-Sep-02 9:16
Daniel Turini23-Sep-02 9:16 
GeneralRe: socket timeout Pin
Rüpel23-Sep-02 10:09
Rüpel23-Sep-02 10:09 
Generalstill doesn't work Pin
Rüpel23-Sep-02 20:52
Rüpel23-Sep-02 20:52 
Generalfinally Pin
Rüpel23-Sep-02 21:53
Rüpel23-Sep-02 21:53 
GeneralEiffel .NET for Visual Studio .NET Plug-in Pin
Kevin McFarlane20-Sep-02 1:50
Kevin McFarlane20-Sep-02 1:50 
GeneralBackground and foreground color for disabled state Pin
valos20-Sep-02 1:18
valos20-Sep-02 1:18 
QuestionShut down one program from another? Pin
Matt Philmon19-Sep-02 18:11
Matt Philmon19-Sep-02 18:11 
AnswerRe: Shut down one program from another? Pin
Stephane Rodriguez.19-Sep-02 19:08
Stephane Rodriguez.19-Sep-02 19:08 
GeneralRe: Shut down one program from another? Pin
Matt Philmon19-Sep-02 20:50
Matt Philmon19-Sep-02 20:50 
GeneralRe: Shut down one program from another? Pin
Stephane Rodriguez.19-Sep-02 21:23
Stephane Rodriguez.19-Sep-02 21:23 
GeneralRe: Shut down one program from another? Pin
Matt Philmon20-Sep-02 4:47
Matt Philmon20-Sep-02 4:47 
GeneralRe: Shut down one program from another? Pin
leppie20-Sep-02 5:22
leppie20-Sep-02 5:22 
GeneralRe: Shut down one program from another? Pin
Matt Philmon20-Sep-02 21:33
Matt Philmon20-Sep-02 21:33 
GeneralRe: Shut down one program from another? Pin
Stephane Rodriguez.21-Sep-02 1:52
Stephane Rodriguez.21-Sep-02 1:52 
GeneralRe: Shut down one program from another? Pin
leppie21-Sep-02 2:01
leppie21-Sep-02 2:01 
GeneralRe: Shut down one program from another? Pin
Matt Philmon21-Sep-02 5:49
Matt Philmon21-Sep-02 5:49 

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.