TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
slim_naldy
NA
2
0
socket connection in a .NET Applet (Windowsformcontrol hosted on browser)
May 25 2005 4:32 AM
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); } .......
Reply
Answers (
0
)
remote manipulation of pc via bluletooth pocket pc!!!
Variables in textboxes