Click here to Skip to main content
15,894,630 members
Home / Discussions / C#
   

C#

 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart20-Mar-05 6:08
protectorHeath Stewart20-Mar-05 6:08 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes20-Mar-05 10:00
Tristan Rhodes20-Mar-05 10:00 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart20-Mar-05 11:37
protectorHeath Stewart20-Mar-05 11:37 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes20-Mar-05 13:22
Tristan Rhodes20-Mar-05 13:22 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart22-Mar-05 2:31
protectorHeath Stewart22-Mar-05 2:31 
GeneralNetwork programming Pin
felopater17-Mar-05 10:19
felopater17-Mar-05 10:19 
GeneralRe: Network programming Pin
Heath Stewart17-Mar-05 14:30
protectorHeath Stewart17-Mar-05 14:30 
GeneralRe: Network programming Pin
felopater18-Mar-05 10:52
felopater18-Mar-05 10:52 
/********************************/
UDPClient Client=new UdpClient();
Client.Bind(new IPEndPoint(Dns.GetHostByName(Dns.GetHostName()).AddressList[0],5000);
byte[]result;
MemoryStream stream=new MemoryStream();
foreach(UserInfo info in GroupUsers)
{
if(compare(info,MyClientInfo))
continue;
seachMessage.Destenation=info;
SerialSearch.Serialize(stream,seachMessage);
Client.Send(stream.GetBuffer(),(int)stream.Length,new IPEndPoint(info.IP,info.port));
stream=new MemoryStream();
}
IPEndPoint point=new IPEndPoint(IPAddress.Any,0);
while(true)
{
try
{
result=Client.Receive(ref point);
q.Enqueue(result);
}
catch(SocketException ex)
{
break;
}
/************************************/
that's was part of my code. it works fine on lAN, by the way UDPClient i Inherited from UdpClient just to use client protected member to set socket timeout so it won't block forever,and i set it in Constructor. am afraid that the problem from UDP datagram size. becouse SearchMessage object after serialization about 2k
thanx so much for your time.

marcoryos
GeneralRe: Network programming Pin
Heath Stewart18-Mar-05 20:06
protectorHeath Stewart18-Mar-05 20:06 
QuestionXMLSerializer and a collection of collections? Pin
Kasdoffe17-Mar-05 10:10
Kasdoffe17-Mar-05 10:10 
AnswerRe: XMLSerializer and a collection of collections? Pin
Kasdoffe17-Mar-05 10:13
Kasdoffe17-Mar-05 10:13 
GeneralCrystal Reports .NET Pin
SignMan35917-Mar-05 9:02
SignMan35917-Mar-05 9:02 
GeneralRe: Crystal Reports .NET Pin
Heath Stewart17-Mar-05 14:34
protectorHeath Stewart17-Mar-05 14:34 
GeneralProperty question Pin
thepersonof17-Mar-05 6:52
thepersonof17-Mar-05 6:52 
GeneralRe: Property question Pin
DavidNohejl17-Mar-05 7:08
DavidNohejl17-Mar-05 7:08 
GeneralRe: Property question Pin
Robert Rohde17-Mar-05 7:11
Robert Rohde17-Mar-05 7:11 
GeneralRe: Property question Pin
Nick Parker17-Mar-05 7:34
protectorNick Parker17-Mar-05 7:34 
GeneralRe: Property question Pin
J4amieC17-Mar-05 23:47
J4amieC17-Mar-05 23:47 
GeneralHexa Converting Pin
WaleedH17-Mar-05 5:48
WaleedH17-Mar-05 5:48 
GeneralRe: Hexa Converting Pin
techieboi17-Mar-05 6:14
techieboi17-Mar-05 6:14 
GeneralRe: Hexa Converting Pin
Robert Rohde17-Mar-05 7:13
Robert Rohde17-Mar-05 7:13 
GeneralRe: Hexa Converting Pin
WaleedH17-Mar-05 12:05
WaleedH17-Mar-05 12:05 
GeneralCalling C# function within Browser Control Pin
Adnan Siddiqi17-Mar-05 5:00
Adnan Siddiqi17-Mar-05 5:00 
GeneralRe: Calling C# function within Browser Control Pin
techieboi17-Mar-05 6:39
techieboi17-Mar-05 6:39 
GeneralRe: Calling C# function within Browser Control Pin
Adnan Siddiqi17-Mar-05 7:29
Adnan Siddiqi17-Mar-05 7:29 

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.