TCP Client Connection Speeds

Dec 19, 2011

Is there a simple reason why it takes a long time to connect to a server? Take mIRC and xChat for example. Seems to instantly connect.

View 6 Replies


ADVERTISEMENT

VS 2008 Chat Server/client - After The Client Clicks Disconnect Or Closes By Task Manager, Looses Connection

Aug 18, 2009

Im using the code from [URL] as a starter, most of the code is the same. the chat system works fine but on the client a added a disconnect button "clientSocket.Close()" and as soon as i click that i get errors, on the client, this is the code...

Private Sub getMessage()
For infiniteCounter = 1 To 2

[CODE]...

And this line...

serverStream.Read(inStream, 0, buffSize)
gives me "Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."

Now im talking the server, after the client clicks disconnect or closes by task manager, looses connection, etc the server crashes and gives me.

View 5 Replies

Pop3 (tcp Client) Connection?

Jan 16, 2009

I created some apps with the system.io and .net namespace. Sending an email and save files and such. Now I want to use pop3 to receive and read the messages on that account. I used TELNET to connect to my pop3 account and that is going well.

Here is the code I used in vb.

Dim client As New TcpClient
client.Connect("Pop3.whatever.com", 110)
If client.Connected = True Then

[code].....

How can I verify if the connection is ok and I'm logged in with this name and password? In Telnet I receive +ok after a command and input is correct, otherwise it generate -err.

View 5 Replies

TCP Client Connection Drop?

Feb 5, 2011

My TCP Client connection dropped with no error. and it seem like receive 'empty data' after every 2nd message response to server.

Below is my function which having issue

Private Sub DoStreamReceive(ByVal ar As IAsyncResult)
Dim intCount As Integer
Try

[code]....

View 4 Replies

Closing A TCPlistener/client Connection?

Sep 13, 2009

Is it necessary to close the connection of a tcplistener or tcpclient after every message received, or is it possible to close it at a later time while it continues to receive data? Is there any major security issue with leaving it open and listening? I know trojans tend to open a listener and leave it open, will my program be detected as such? Its just a simple chat program....

View 1 Replies

Connect VB Client Application With SQL Server Using TCP Connection (LAN)?

Feb 15, 2012

I've been Searching the Net for hours now, and i can't really seem to find anything clear and straight to the point.

I need to create a Server/Client application using VB.net 2008, it's actually my first time to have a database on another computer. So I first searched the internet for the things i need to make this software.

[code]...

View 5 Replies

Connection String For Client-server Application?

May 5, 2012

I want to create a client-server application, it means I just need 1 database on the server.I have a computer and a laptop. I set my laptop's IP to 192.168.1.1 and my computer's IP to 192.168.1.2.Now I place the database on my computer, the database name is db_transportasi.Problem is, how to connect my computer's database from my laptopSpecification :I'm using this string below for my connection :Data Source=ARVID-THEODORUSSQLEXPRESS;Initial Catalog=DB_TRANSPORTASI;Integrated Security=TrueI already setup my SQL Configuration Manager, enabled the TCP/IP, switch to the IP Addresses tab and set the IPAII Port Properties to 2301I turned off my firewall so I don't have to set any exceptionQuestion

View 4 Replies

Managing Multiple Client Socket Connection?

Sep 11, 2011

Am developing a server - client application using the system.net class , that will have more than 5000 simultenous client connection.what is the best way to manage multiple client connection like this?

View 3 Replies

Setting Up Client/server Connection!THesis?

Mar 11, 2010

I am a newbie in VB.NET I am using Sql Server Express 2005 as my database.I am currently working with my THESIS. A Human Reources Information System that concerns only with the file and record management of the employees. With two modules.a. Administrator for HR Manager (w/ installed vb.net and sqlserver express 2005)b. Staff for HR Clerk(w/ intalled vb.net)

Here is my problems:

1. I want to learn how to connect my vb.net application in each other using TCP/IP or any network connection tips.Scenario: If the client Save/Edit/Delete/ a record automatically it will saves on the admin sql database.

[Code]...

View 2 Replies

TCP Connection Code For Client And Server Communication?

Nov 5, 2011

I have a TCP connection code for client and server communication. It's not meant to be malware but it collects the clients computer information and then connects to the server.

It successfully "connects" but then immediately disconnects.Here is the code for the server:

Dim Listener As TcpListener
Dim Client As TcpClient
Dim ClientList As New List(Of ChatClient)
Dim sReader As StreamReader

[Code]...

I have port forwarding all done and it works if I run the client and server on my own machine. If I run the client on another machine though It gives me a message box saying that it connected with the clients remote IP and at the same time it tells me it disconnected. The client never sends the system information. What is the problem?

View 2 Replies

.net - Check The Connection State Of A TCP Server (Socket) With TCP Client?

Apr 23, 2012

For almost a week I am reading and trying to find a solution for checking connection state using a TCP Client (using socket class) In my scenario I have a TCP Client that is connected to a server (it is not controlled by me) and i want that from time to time to check the connection state, and reconnect if necessary.I have read a lot of information on the internet but i did not find a suitable solution.Briefly, these are the methods that i have found on the internet and try to implement.But unfortunatelly, i have found some scenarios where the TCP Server is closed and the TCP Client is still saying Connected 1.Example from MSDN

[code]...

View 1 Replies

C# - Push Website From Server To Client Using Wifi Connection?

Jan 29, 2011

I want to make an application that can push ads (website) to client..

Here is the case : Client try to connect to internet via wifi. Once the client is connected, server send a website address to client, and a popup (website sent by server) will appear in the client's computer in default browser.

I can list all IP connected to server, but i don't know how to push the website to client

Here is the code to list all IP connected to server : (import System.Net library)

String strHostName = "";
if(args == null || args.Length == 0){
strHostName = Dns.GetHostName();

[Code]....

View 1 Replies

Change Connection String On Client Computer At Run Time?

Jan 21, 2012

and advise how I can change this connection string at run time. This is going to be on Client's computer and my application will need to change the name of computer after user enters it.

View 1 Replies

Get The Client Connection Parameters Of The Socket On Server Side?

Sep 13, 2011

I want both the client and server to write and read resp. at a constant rate (which can be configured on the GUI of the client) to the buffer.I am able to send from the client at 150 bytes per packet Now, I should be able to read also at 150 bytes per packet on the server too Since, both are connected through a socket, can we retrieve the socket params (set on the client size, like 150 here) from the server end, using the tcpServer object.Or is it must to send an initial setup packet which tells about these client params and so accordingly the server can continue?

View 1 Replies

SMTP Server Requires A Secure Connection Or The Client Was Not?

Jun 18, 2012

So I'm making a Program to Start/Restart/Stop and running commands from the Console for my Server.Now when someone uses the console, I want to be alerted of it on my Mail.I am using Visual Studio 2010.

[Code]...

View 1 Replies

Use Datareader And Open New Connection To The Database On Every Client Query?

Jul 6, 2009

I'm building application that will heavily use database (about 25k query's in few hours) , what is the best way to go:

A) use datareader and open new connection to the database on every client query.

B) load all the needed tables into dataset once the program loaded and use that dataset for the query's?

View 8 Replies

Using Typed Datasets' Connection String For Client Application?

Jan 20, 2012

I have set the connection string of my dataset(typed) asData Source=MyHomeServerSQLEXPRESS;Initial Catalog=dbTestSharing;Integrated Security=TrueThis is going to be a client side application. I need to change the machinename in the connection string so it could connect with server.

View 1 Replies

Using Vb Express 2005 Build A Client And Server Connection?

Aug 9, 2010

i need to know about how to build connection with server and client? eg: my server is 140.134.5.1 and my client need to connect to it to do communication,how should i do?

View 6 Replies

VS 2008 Can Change Timer Speeds

Oct 27, 2011

I have a timer1 and it's interval is set to (1000). I know i can change the speed in a button or something like this:"Timer1.Interval = (2000)" but is it possible to make it so it RANDOMLY changes? Like when the timer1 is ticking, maybee it will change every time to somewhere between 200-1000 ? So its not EXACTLY a preset exact time interval.

View 2 Replies

VS 2010 Detecting CPU, GPU, HDD Temps, Fan Speeds?

Mar 1, 2011

I'm wondering how I would go about getting CPU, GPU and HDD temperatures and fan speeds, is there an easy API for this? I have a feeling there isn't

View 6 Replies

C# - WCF ReceiveTimeout Infinite - Keep The Client-server Connection Endless Open

Mar 6, 2012

I'm using a "wsHttpBinding" with a reliable session. I'd like to keep the client-server connection endless open. Therefore I need to set the ReceiveTimeout to "infinite". Has the "ReceiveTimeout" an other purpose (e.g. client crash detection; detecting a hanging request; etc) or can I set it to "infinite" without problems?

View 1 Replies

Flicker Free Listview / Add A Row At Slow Speeds

Jun 1, 2005

I'm using a listview control as a log window for a self-made FTP client application.Sometimes I need to add a row at slow speeds, but also sometimes a lot of information (50-100 rows, like dirlistings, login messages of FTP servers) has to be added to the listview within a For/Next loop.Now adding rows very quickly makes the listview flicker in an ennoying way. So much, the listview is hardly to read.For me, it is important I can see every row added (using different colors to know different meanings).Searching the internet, I find solutions using BeginUpdate & Endupdate of the listview control just outside the bounds of the For/Next loop. This makes that the new rows are displayed only when the For/Next loop is complete.Does anyone know a solution to significant reduce the flickering (maybe without using BeginUpdate & EndUpdate?), but where I still can see every single row added?

View 21 Replies

Improve Deserialize Speeds Of A Large Dictionary?

Feb 2, 2010

it's capability to serialize objects. In a future project I will be creating dictionaries which have a Long as a key and a Collection as an item (itself containing two other long values). These dictionaries will be large, containing around 300,000 entries.

I've worked out how serialize and deserialize the dictionary using a binary formatter.

To serialize I use:

Dim myDictionary As Collections.Generic.Dictionary(Of Int64, Collection))
' I fill the dictionary with 300,000 entries here
Dim fs As New FileStream("c: empserialDict.dat", FileMode.Create)

[Code]....

View 3 Replies

Error The SMTP Server Requires A Secure Connection Or The Client Was Not Authenticated

Feb 19, 2009

I am trying to get this program to send an email, but still no luck. I am getting the following error that I do not understand. I do not understand what I am doing wrong. Also, I may have an issue that the computer I am writing this code on and trying to send the message does not have ISS and is just windows XP home.

The error is below

System.Net.Mail.SmtpException was unhandled
Message="The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. k41sm2133530rvb.6"

[code].....

View 2 Replies

VB 2008 Make A Website Refresher With Intervals / Speeds

Sep 5, 2009

This is How to make a website refresher with intervals/speeds

[Code]...

View 2 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 Replies

The SMTP Server Requires A Secure Connection Or The Client Was Not Authenticated. The Server Response Was 5.5.1 Authentication Required

Nov 28, 2009

This emailing code wont seem to work in my program. I get an exception "The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.5.1 authentication required."

Imports System.Net.Mail
Public Class emailStudent
Private Sub sendEmailButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sendEmailButton.Click
SendMail()

[code]....

View 12 Replies

Identify Connection Lost Between Socket Server And Socket Client?

May 21, 2011

I wrote a Socket Client which will send the Socket Server some data and get some response from Server. This process will be running once in every 2 seconds.

Now what I need to know is How we can identify the connection lost between Server and Client?

I need this to be implemented in the Client side. If there is no connection then Client should automatically close the connection. Once the connection with the server is available in the next attempt it should connect automatically.

View 1 Replies

Web Service Client Accessing Java Web Service / Connection Aborted

Sep 27, 2010

I had a problem getting a VB.NET web service client to receive the response object from a Java web service.In the process of posting this question someone from another department volunteered some code written for a similar situation.I couldn't find this anywhere on the net so I'm completing my question to help others out.[code]The web service is Apache CXF with some Spring elements mixed in.

View 1 Replies

Writing A Program With 1 Client And Server Where Client Side Creates A Text File

Dec 1, 2008

I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved