Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

how do I get the get connected socket

how do I get the get connected socket

for example

            strcpy(resultBuf,inBuf);
            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");
                        WSACleanup();
                        break;
                        }
                  }

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
0
1030071002
Asked:
1030071002
  • 4
  • 2
2 Solutions
 
RimvisCommented:
Hi1030071002,

Take a look here:


Introduction to Visual Basic Socket Programming
http://www.osix.net/modules/article/?id=25

0
 
1030071002Author Commented:
I am looking for UDP
0
 
RimvisCommented:
Does this help:

VB6 - Winsock, Auto find server using UDP Broadcast (LAN ONLY)
http://www.vbforums.com/showthread.php?t=422722
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
1030071002Author Commented:
you guys know any good book on socket programming
0
 
1030071002Author Commented:
made a mistake please cancel
0
 
1030071002Author Commented:
book was not enough to solve the situation
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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