Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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)
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 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