Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: Client and Server Program Pin
0x3c031-Mar-09 7:02
0x3c031-Mar-09 7:02 
GeneralRe: Client and Server Program Pin
Vinziee1-Apr-09 0:28
Vinziee1-Apr-09 0:28 
GeneralRe: Client and Server Program Pin
SeMartens31-Mar-09 9:18
SeMartens31-Mar-09 9:18 
GeneralRe: Client and Server Program Pin
Vinziee1-Apr-09 0:29
Vinziee1-Apr-09 0:29 
AnswerRe: Client and Server Program Pin
musefan31-Mar-09 0:49
musefan31-Mar-09 0:49 
GeneralRe: Client and Server Program Pin
Vinziee31-Mar-09 1:23
Vinziee31-Mar-09 1:23 
GeneralRe: Client and Server Program Pin
EliottA31-Mar-09 2:15
EliottA31-Mar-09 2:15 
AnswerRe: Client and Server Program Pin
agent00zelda31-Mar-09 2:30
agent00zelda31-Mar-09 2:30 
I am new to C# so I've been browsing the MSDN libraries to see how to use certain classes. After reading your post, I looked for and found the description of the UdpClient class.

http://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient.aspx

There are examples on that site, but specifically you need to close your server connection, as the others were telling you. So, somewhere before the user closes the program, you have to call server.Close()

I would recommend a finally block in your receive() method and closing the server there. But you would have to define server before the try block for this to work.
GeneralRe: Client and Server Program Pin
Vinziee31-Mar-09 2:35
Vinziee31-Mar-09 2:35 
QuestionRotate and Resize a Rectangle Pin
Madmanxxx30-Mar-09 23:34
Madmanxxx30-Mar-09 23:34 
AnswerRe: Rotate and Resize a Rectangle Pin
Mustafa Ismail Mustafa30-Mar-09 23:40
Mustafa Ismail Mustafa30-Mar-09 23:40 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx30-Mar-09 23:44
Madmanxxx30-Mar-09 23:44 
GeneralRe: Rotate and Resize a Rectangle Pin
Mustafa Ismail Mustafa31-Mar-09 0:07
Mustafa Ismail Mustafa31-Mar-09 0:07 
AnswerRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 0:22
musefan31-Mar-09 0:22 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 0:32
Madmanxxx31-Mar-09 0:32 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 0:45
musefan31-Mar-09 0:45 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 0:54
Madmanxxx31-Mar-09 0:54 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 1:00
musefan31-Mar-09 1:00 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 1:09
Madmanxxx31-Mar-09 1:09 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 1:15
musefan31-Mar-09 1:15 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 21:32
Madmanxxx31-Mar-09 21:32 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 21:46
musefan31-Mar-09 21:46 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 22:25
Madmanxxx31-Mar-09 22:25 
Questioncreate enum at run time Pin
a.hamidy30-Mar-09 23:13
a.hamidy30-Mar-09 23:13 
AnswerRe: create enum at run time Pin
musefan30-Mar-09 23:18
musefan30-Mar-09 23:18 

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.