Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
QuestionC# App Error Pin
nosferatu200010-Nov-05 17:10
nosferatu200010-Nov-05 17:10 
AnswerRe: C# App Error Pin
J4amieC10-Nov-05 21:48
J4amieC10-Nov-05 21:48 
Questiondisplay from system tray issues Pin
lushgrass10-Nov-05 16:52
lushgrass10-Nov-05 16:52 
QuestionC# and mysql Pin
vandread110-Nov-05 13:18
vandread110-Nov-05 13:18 
AnswerRe: C# and mysql Pin
Christian Graus10-Nov-05 13:33
protectorChristian Graus10-Nov-05 13:33 
GeneralRe: C# and mysql Pin
vandread110-Nov-05 13:39
vandread110-Nov-05 13:39 
GeneralRe: C# and mysql Pin
Christian Graus10-Nov-05 13:53
protectorChristian Graus10-Nov-05 13:53 
QuestionSocket question Pin
Tom Wright10-Nov-05 12:40
Tom Wright10-Nov-05 12:40 
I've written an ftpclient app. All it does is connects to the host uploads a file and disconnects. In my code I close the socket. However when I try to reestablish the socket connection I get this exception:

Cannot access a disposed object named System.Net.Sockets.Socket.

In my close method I'm doing this:

<br />
FTPSocket.Shutdown(SocketShutdown.Both);<br />
FTPSocket.Close();<br />

in my open I'm doing this:

<br />
					IPEndPoint ipend = new IPEndPoint(Dns.Resolve(Host).AddressList[0],Port);<br />
					FTPSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 60000);<br />
					FTPSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 60000);<br />
					FTPSocket.Connect((EndPoint)ipend);<br />

I'm not sure what I'm missing here. Any thoughts would be appreciated.

FYI I'm using an FTP class called FTPClient.

Thanks

Tom Wright
tawright915@yahoo.com
AnswerRe: Socket question Pin
User 58385210-Nov-05 16:40
User 58385210-Nov-05 16:40 
GeneralRe: Socket question Pin
Tom Wright11-Nov-05 4:55
Tom Wright11-Nov-05 4:55 
GeneralRe: Socket question Pin
Tom Wright12-Nov-05 3:20
Tom Wright12-Nov-05 3:20 
QuestionCaching multiple ArrayLists Pin
Rlearning10-Nov-05 12:40
Rlearning10-Nov-05 12:40 
AnswerRe: Caching multiple ArrayLists Pin
Christian Graus10-Nov-05 13:06
protectorChristian Graus10-Nov-05 13:06 
GeneralRe: Caching multiple ArrayLists Pin
Rlearning11-Nov-05 6:00
Rlearning11-Nov-05 6:00 
GeneralRe: Caching multiple ArrayLists Pin
Christian Graus13-Nov-05 9:48
protectorChristian Graus13-Nov-05 9:48 
Questioncheckedlistbox highlight and spacing Pin
SeanCM10-Nov-05 12:29
SeanCM10-Nov-05 12:29 
AnswerRe: checkedlistbox highlight and spacing Pin
whizzs11-Nov-05 8:49
whizzs11-Nov-05 8:49 
QuestionProblems with tabcontrol Pin
ika210-Nov-05 12:23
ika210-Nov-05 12:23 
QuestionHow to Get MouseEnter to Work With Mouse Button Down Pin
redfish3410-Nov-05 11:49
redfish3410-Nov-05 11:49 
QuestionA similar action to a try catch statement? Pin
Kuira10-Nov-05 11:49
Kuira10-Nov-05 11:49 
AnswerRe: A similar action to a try catch statement? Pin
Christian Graus10-Nov-05 12:42
protectorChristian Graus10-Nov-05 12:42 
GeneralRe: A similar action to a try catch statement? Pin
Kuira10-Nov-05 13:25
Kuira10-Nov-05 13:25 
GeneralRe: A similar action to a try catch statement? Pin
Christian Graus10-Nov-05 13:27
protectorChristian Graus10-Nov-05 13:27 
GeneralRe: A similar action to a try catch statement? Pin
Kuira10-Nov-05 13:46
Kuira10-Nov-05 13:46 
GeneralRe: A similar action to a try catch statement? Pin
Leslie Sanford10-Nov-05 18:47
Leslie Sanford10-Nov-05 18:47 

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.