473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

winsock : connectin between 1 client and many remote servers

17 New Member
Hey Guys
Using Winsock application under vb.net 2005

Using same client, i want to connect to many remote servers

the Exception that i m facing : "cant not send data while not connected"
i knew the problem of this Exception:the client is sending data before being connected to the specified server,hence, can you guys give me a simple hint what to add to slow the commincation(delay),and thus wait the connection to be created,then send the message "exit;"
note : i tried to use timer,but to tell you the truth, i didnt know how to well use it :S
this is the code that i am using at the Client side
Expand|Select|Wrap|Line Numbers
  1. Public Sub connect()
  2. Try
  3. For Each cb As CheckBox In Me.GBBranches.Controls
  4. wskClient.Connect(cb.Text, 5000)
  5. wskClient.Send("exit;")
  6. Next
  7. Catch noCon As Exception
  8. MsgBox(noCon.Message)
  9.  
  10. End Try
  11. End Sub




Regards
Ramy

Regards,
Ramy
Nov 23 '06 #1
0 965

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mark Carter | last post by:
Suppose I wanted to combine a thin client written in VB6 with a server on a remote machine. Since this is the python group, assume for now that it could be written in python (although VB6 would be...
2
by: Raquel | last post by:
How do I know whether the 'runtime client' and the 'application development client' are installed on my machine? When I issue the command "db2licm -l", it gives the following output: Product...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
0
by: Björn Pedersen | last post by:
I'm having a tough time getting System.Net.Sockets to work with a server that's based around Winsock 6.0. For many reasons I can't write a new server because the server handles a number of client...
1
by: Nicolas Ghesquiere | last post by:
Hello I have a problem with my current program. The meaning of the program is to allow users to login to a server to allow them to access the internet. My program communicates with a MS isa...
1
by: raj.rr7 | last post by:
Hi, I am creating a Http client application using winsock, evc++ 4.0 and K- Jam (WIndows Mobile 5) that will get data from Http server. I am using the following code. WSADATA wsaData;...
4
by: penkomitev | last post by:
Hello! First, excuse me if I have any mistakes because Bulgarian is my native language and English is a foreign one. So the problem is: I have a chat program with to parts: server and client ones....
1
xtianixm
by: xtianixm | last post by:
im just wondering if i have a client/server application which winsock is involved. does that affect on my connections? what i mean is when winsock is listening to an incoming remote host to connect...
3
AaronL
by: AaronL | last post by:
Hello, I am currently working on a project that has me in sort of a bind. What I want to do is retrieve web pages from the internet, and strip them down to just text. I'll get using Regular...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.