winsock control
winsock control
winsock control
winsock control
winsock control
winsock control winsock control winsock control winsock control winsock control winsock control winsock control winsock control
winsock control winsock control
winsock control
Go Back  Xtreme Visual Basic Talk > > > winsock control


Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2001, 03:50 PM
davecarr2000
Guest
 
Posts: n/a
Default winsock control


Can somebody look at this code and tell where im going wrong.
If find that the first client to connect can send data, but doesn't receive it. The second client can send and receive.
newSck is an index control for the winsock.

For y = 1 To newSck
If sckServer(y).State = sckConnected Then
sckServer(y).GetData strData
If strData <> "" Then
For x = 1 To newSck
If sckServer(x).State = sckConnected Then
sckServer(x).SendData strData
End If
Next x
End If
End If
Next y

Reply With Quote
  #2  
Old 09-14-2001, 05:20 AM
Banjo's Avatar
Banjowinsock control Banjo is offline
Hell's Angel

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
Default Re: winsock control

I'm not sure what you're trying to accomplish. Could you give some more info?

__________________
A wise one man once said "what you talking about dog breath"
Reply With Quote
  #3  
Old 09-15-2001, 06:04 AM
ChiefRedBull's Avatar
ChiefRedBullwinsock control ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default Re: winsock control

Yeh that code in itself should work fine Dave. I cant see any obvious problems. It looks like you have an array of Socks, and when they receive data, they send it straight back right?
So one end is working and the others not.... hmm..... It sounds like its something to do with connections n stuff.
Could you post a little more code?

Chief

"Dammit Smithers, this is brain surgery not rocket science!! Now hand me that ice cream scoop..."
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #4  
Old 09-15-2001, 03:13 PM
hashir56
Guest
 
Posts: n/a
Default Re: winsock control

i think the reason why the first client doesnt recive data is because you have to wait for the Winsock1_DataArrival() sub to trigger..

Reply With Quote
  #5  
Old 09-16-2001, 05:47 AM
ChiefRedBull's Avatar
ChiefRedBullwinsock control ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default Re: winsock control

Am i right in assuming that the code you supplied is from your DataArrival Sub dave?

Chief

"Dammit Smithers, this is brain surgery not rocket science!! Now hand me that ice cream scoop..."
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
winsock control
winsock control
winsock control winsock control
winsock control
winsock control
winsock control winsock control winsock control winsock control winsock control winsock control winsock control
winsock control
winsock control
 
winsock control
winsock control
 
-->