Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
Questionfinding .resx fallback culture thru code [modified] Pin
yanairon30-Aug-09 6:00
yanairon30-Aug-09 6:00 
Question[Answered] Creating a list/collection containing different object types [modified] Pin
Trollslayer30-Aug-09 5:24
mentorTrollslayer30-Aug-09 5:24 
AnswerRe: Creating a list/collection containing different object types Pin
PIEBALDconsult30-Aug-09 5:34
mvePIEBALDconsult30-Aug-09 5:34 
GeneralRe: Creating a list/collection containing different object types Pin
Trollslayer30-Aug-09 6:16
mentorTrollslayer30-Aug-09 6:16 
GeneralRe: Creating a list/collection containing different object types Pin
Luc Pattyn30-Aug-09 6:29
sitebuilderLuc Pattyn30-Aug-09 6:29 
GeneralRe: Creating a list/collection containing different object types Pin
Trollslayer30-Aug-09 6:54
mentorTrollslayer30-Aug-09 6:54 
GeneralRe: Creating a list/collection containing different object types Pin
Luc Pattyn30-Aug-09 10:26
sitebuilderLuc Pattyn30-Aug-09 10:26 
QuestionUDP - Server (EndReceiveFrom) doesn't work Pin
softwarejaeger30-Aug-09 5:16
softwarejaeger30-Aug-09 5:16 
Hello,

i had a running UDP-Server, but had the problem, that only every second package coming on. So now i wanted to re-code it with Socket and not using the UdpClient.

If i want to receive a datagram with Socket.EndReceiveFrom(ar,ref ep) it doesn't works. I get a NullReferenceException (i think the "ep" is the problem), but if i use Socket.EndReceive(ar) it works well.

Here the code:
string szData;
IPEndPoint ipe = new IPEndPoint(IPAddress.Any, 0);
EndPoint ep = (EndPoint)ipe;
int len = parent.udp_listen.EndReceiveFrom(ar,ref ep);
szData = Encoding.ASCII.GetString(buffer, 0, len);


"parent.udp_listen" is the public UdpClient which is in another class.

So what's wrong... is there another possibility to find out who is the sender of the datagram? Because i need the IP Address and the sending-Port of the sender.

Thanks
QuestionJob market Aussie ??? Pin
UBX30-Aug-09 4:02
UBX30-Aug-09 4:02 
AnswerRe: Job market Aussie ??? Pin
Abhishek Sur30-Aug-09 6:29
professionalAbhishek Sur30-Aug-09 6:29 
GeneralRe: Job market Aussie ??? Pin
UBX30-Aug-09 9:08
UBX30-Aug-09 9:08 
GeneralRe: Job market Aussie ??? Pin
DaveyM6930-Aug-09 11:11
professionalDaveyM6930-Aug-09 11:11 
AnswerRe: Job market Aussie ??? Pin
Joe Woodbury30-Aug-09 11:38
professionalJoe Woodbury30-Aug-09 11:38 
GeneralRe: Job market Aussie ??? Pin
UBX30-Aug-09 14:22
UBX30-Aug-09 14:22 
QuestionHow to assign value to textbox after it get focused in mshtml Pin
Mohsen Esmailpour30-Aug-09 3:34
professionalMohsen Esmailpour30-Aug-09 3:34 
QuestionDeploy app without .net frx Pin
tukhoi30-Aug-09 3:31
tukhoi30-Aug-09 3:31 
AnswerRe: Deploy app without .net frx Pin
PIEBALDconsult30-Aug-09 3:58
mvePIEBALDconsult30-Aug-09 3:58 
GeneralRe: Deploy app without .net frx Pin
tukhoi30-Aug-09 5:09
tukhoi30-Aug-09 5:09 
GeneralRe: Deploy app without .net frx Pin
PIEBALDconsult30-Aug-09 5:35
mvePIEBALDconsult30-Aug-09 5:35 
GeneralRe: Deploy app without .net frx Pin
tukhoi30-Aug-09 5:36
tukhoi30-Aug-09 5:36 
GeneralRe: Deploy app without .net frx Pin
Luc Pattyn30-Aug-09 6:34
sitebuilderLuc Pattyn30-Aug-09 6:34 
GeneralRe: Deploy app without .net frx Pin
PIEBALDconsult30-Aug-09 10:30
mvePIEBALDconsult30-Aug-09 10:30 
GeneralRe: Deploy app without .net frx Pin
tukhoi30-Aug-09 17:35
tukhoi30-Aug-09 17:35 
GeneralRe: Deploy app without .net frx Pin
stancrm30-Aug-09 7:50
stancrm30-Aug-09 7:50 
GeneralRe: Deploy app without .net frx Pin
PIEBALDconsult30-Aug-09 10:26
mvePIEBALDconsult30-Aug-09 10:26 

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.