how do I get the get connected socket

Posted on 2011-03-02
Last Modified: 2012-06-21
how do I get the get connected socket

for example

            errcnt = 0;
            while( sendto(listen_socket, resultBuf, strlen(resultBuf) + 1, 0, (struct sockaddr *)&from, fromlen) == SOCKET_ERROR  )
                  if( errcnt++ > 4 )
                        DisplayMsg("send of resultBuf packet failed");

in a next program I need to find the listen socket to get the message. that I am sending back the send is from a C code and I am trying to get that message send in VB6 code
Question by:1030071002
  • 4
  • 2
LVL 19

Accepted Solution

Rimvis earned 500 total points
ID: 35054010

Take a look here:

Introduction to Visual Basic Socket Programming


Author Comment

ID: 35058556
I am looking for UDP
LVL 19

Assisted Solution

Rimvis earned 500 total points
ID: 35066186
Does this help:

VB6 - Winsock, Auto find server using UDP Broadcast (LAN ONLY)
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.


Author Comment

ID: 35084246
you guys know any good book on socket programming

Author Comment

ID: 35365823
made a mistake please cancel

Author Closing Comment

ID: 35365829
book was not enough to solve the situation

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reading the Contents of a Directory In Access VBA 5 70
Best way to parse out a json string in VB6? 10 170
passing parameter in sql procedure 9 63
MsgBox 4 61
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question