• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

problem about WinSock

I'm using Winsock to write a communication application.But When I
use Winsock1.senddata "OK!" to send data to the other conputer,it desn't
work.Why?
0
szzjjj
Asked:
szzjjj
1 Solution
 
szzjjjAuthor Commented:
The code

Private Sub sckServer_ConnectionRequest(Index As Integer, ByVal requestID As Long)
If (Index = 0) Then
 intMax = intMax + 1
 Load sckServer(intMax)
 sckServer(intMax).LocalPort = 0
 sckServer(intMax).Accept requestID
 sckServer(intMax).SendData "OK"
End If
End Sub
0
 
mcriderCommented:
you need to put a DoEvents after the SendData.

Cheers!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now