Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: using string[] to call dll for const char *arg[] Pin
hhmmdd25-May-05 4:55
hhmmdd25-May-05 4:55 
GeneralRe: using string[] to call dll for const char *arg[] Pin
eggie525-May-05 15:52
eggie525-May-05 15:52 
QuestionTimeSpanPicker for Windows Forms? Pin
Uwe Keim24-May-05 22:48
sitebuilderUwe Keim24-May-05 22:48 
AnswerRe: TimeSpanPicker for Windows Forms? Pin
mav.northwind25-May-05 2:48
mav.northwind25-May-05 2:48 
GeneralDetect if ocx is installed Pin
NoXuS24-May-05 22:38
NoXuS24-May-05 22:38 
GeneralRe: Detect if ocx is installed Pin
John Fisher25-May-05 7:38
John Fisher25-May-05 7:38 
GeneralRe: Detect if ocx is installed Pin
NoXuS25-May-05 21:35
NoXuS25-May-05 21:35 
Generalsocket connection in a .NET Applet (Windowsformcontrol hosted on browser) Pin
drkalucard24-May-05 22:16
drkalucard24-May-05 22:16 
Hi, I have created a .Net Applet that connects to an FTP server via sockets. The problem is that the connection to the socket takes a long time (at around 100+ seconds). I tried creating an implementation of the FTP class in a Windows Form and I got connected faster (roughly 1-3 seconds).

Are there issues when connecting/opening sockets in .Net Applet?

sample code


public Boolean Login()

{

// Create socket
m_objClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

// Create IPEndpoint
IPEndPoint ep = new IPEndPoint(Dns.Resolve(m_sRemoteHost).AddressList[0], m_iRemotePort);

try
{
// Connect Socket takes a long time in applet
m_objClientSocket.Connect(ep);
}
catch(Exception ex)
{
MessageString = m_sReply;
throw new IOException("Cannot connect to the remote server. Error: " + ex.Message);
}

.......


GeneralRe: socket connection in a .NET Applet (Windowsformcontrol hosted on browser) Pin
Judah Gabriel Himango25-May-05 4:15
sponsorJudah Gabriel Himango25-May-05 4:15 
Generalsave configuration Pin
dogdogdog24-May-05 21:20
dogdogdog24-May-05 21:20 
GeneralRe: save configuration Pin
Colin Angus Mackay24-May-05 22:26
Colin Angus Mackay24-May-05 22:26 
GeneralRe: save configuration Pin
pubududilena24-May-05 22:37
pubududilena24-May-05 22:37 
GeneralRe: save configuration Pin
J4amieC24-May-05 23:40
J4amieC24-May-05 23:40 
GeneralRe: save configuration Pin
pubududilena25-May-05 1:11
pubududilena25-May-05 1:11 
GeneralRe: save configuration Pin
DavidNohejl25-May-05 1:35
DavidNohejl25-May-05 1:35 
GeneralRe: save configuration Pin
dogdogdog25-May-05 16:57
dogdogdog25-May-05 16:57 
General.NET Executable as COM server Pin
mav.northwind24-May-05 20:59
mav.northwind24-May-05 20:59 
GeneralRe: .NET Executable as COM server Pin
John Fisher25-May-05 7:36
John Fisher25-May-05 7:36 
GeneralRe: .NET Executable as COM server Pin
mav.northwind25-May-05 14:34
mav.northwind25-May-05 14:34 
GeneralRe: .NET Executable as COM server Pin
John Fisher25-May-05 17:19
John Fisher25-May-05 17:19 
GeneralInsert Command Pin
Blue_Boy24-May-05 20:41
Blue_Boy24-May-05 20:41 
GeneralRe: Insert Command Pin
pubududilena25-May-05 1:27
pubududilena25-May-05 1:27 
GeneralRe: Insert Command Pin
Uri Lavi25-May-05 8:22
Uri Lavi25-May-05 8:22 
QuestionSerialization Error?? Pin
rufcaw24-May-05 20:27
rufcaw24-May-05 20:27 
AnswerRe: Serialization Error?? Pin
Alomgir Miah25-May-05 3:40
Alomgir Miah25-May-05 3:40 

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.