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

.NET (Core and Framework)

 
AnswerRe: Breakpoint will not currently be hit Pin
kubben7-Mar-07 12:57
kubben7-Mar-07 12:57 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches8-Mar-07 5:17
TeachesOfPeaches8-Mar-07 5:17 
AnswerRe: Breakpoint will not currently be hit Pin
Dave Kreskowiak8-Mar-07 4:32
mveDave Kreskowiak8-Mar-07 4:32 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches8-Mar-07 9:47
TeachesOfPeaches8-Mar-07 9:47 
GeneralRe: Breakpoint will not currently be hit Pin
Vasudevan Deepak Kumar9-Mar-07 6:19
Vasudevan Deepak Kumar9-Mar-07 6:19 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches9-Mar-07 11:54
TeachesOfPeaches9-Mar-07 11:54 
QuestionWebConfig Section for .NET Framework 3.0 Pin
Vasudevan Deepak Kumar7-Mar-07 10:47
Vasudevan Deepak Kumar7-Mar-07 10:47 
QuestionSockets issue, how to listen to UDP socket for multiple instances Pin
nsutanto7-Mar-07 10:36
nsutanto7-Mar-07 10:36 
Hello,

I have 2 instances of server.
Both instances create UDP socket listening for incoming messages.
It seems that only 1 instace of my server can listen to the messages, the other seems to see that the UDP socket is not available when it suppose to receive.

Below are portion of my code:
Socket udpSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); udpSocket.SetSocketOption(SocketOptionLevel.Socket ,SocketOptionName.ReceiveBuffer,BufferCapacity);
udpSocket.SetSocketOption(SocketOptionLevel.Socket , SocketOptionName.ReuseAddress, 1);
int servicePort = (int)transport.Properties["port"];
System.Net.IPEndPoint localEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Any, servicePort);
IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);
EndPoint tempRemoteEndPoint = (EndPoint)sender;
udpSocket.Bind(localEndPoint);

while (keepAlive)
{
fetchSignal.WaitOne();
//This call is made to yield processor resources, Remote Client doesn't
//consume 100% of the CPU.
Thread.Sleep(1);
while (keepFetching && (udpSocket.Available > 0)) //only if data is available..
{
.......
}
}




NOTE: The 2nd instance see that the udpSocket.Available is 0. While the 1st instance can see that the udpSocket is greater than 0.
QuestionMultithreading Local Variables Pin
MikeMarq7-Mar-07 8:09
MikeMarq7-Mar-07 8:09 
AnswerRe: Multithreading Local Variables Pin
Leslie Sanford7-Mar-07 8:21
Leslie Sanford7-Mar-07 8:21 
GeneralRe: Multithreading Local Variables Pin
MikeMarq7-Mar-07 10:49
MikeMarq7-Mar-07 10:49 
AnswerRe: Multithreading Local Variables Pin
arcticbrew7-Mar-07 19:19
arcticbrew7-Mar-07 19:19 
QuestionDo Events causing overflow Pin
earlgraham7-Mar-07 8:04
earlgraham7-Mar-07 8:04 
AnswerRe: Do Events causing overflow Pin
Scott Page7-Mar-07 12:46
professionalScott Page7-Mar-07 12:46 
GeneralRe: Do Events causing overflow Pin
earlgraham8-Mar-07 11:46
earlgraham8-Mar-07 11:46 
Questionserialization of derived classes Pin
AndyKEnZ7-Mar-07 6:01
AndyKEnZ7-Mar-07 6:01 
Questionhow to insert background image on report? Pin
priya_p2336-Mar-07 16:38
priya_p2336-Mar-07 16:38 
AnswerRe: how to insert background image on report? Pin
nare7006-Mar-07 16:59
nare7006-Mar-07 16:59 
Question.NET 2.0 on WInNT Pin
bitfch6-Mar-07 9:54
bitfch6-Mar-07 9:54 
AnswerRe: .NET 2.0 on WInNT Pin
Dave Kreskowiak6-Mar-07 10:28
mveDave Kreskowiak6-Mar-07 10:28 
GeneralRe: .NET 2.0 on WInNT Pin
bitfch6-Mar-07 10:32
bitfch6-Mar-07 10:32 
GeneralRe: .NET 2.0 on WInNT Pin
Dave Kreskowiak6-Mar-07 12:12
mveDave Kreskowiak6-Mar-07 12:12 
AnswerRe: .NET 2.0 on WInNT Pin
Dan Neely7-Mar-07 2:58
Dan Neely7-Mar-07 2:58 
GeneralRe: .NET 2.0 on WInNT Pin
Dave Kreskowiak7-Mar-07 5:53
mveDave Kreskowiak7-Mar-07 5:53 
GeneralRe: .NET 2.0 on WInNT Pin
Dan Neely7-Mar-07 7:51
Dan Neely7-Mar-07 7: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.