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
1030071002Asked:
Who is Participating?
 
RimvisConnect With a Mentor Commented:
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
 
RimvisConnect With a Mentor Commented:
Does this help:

VB6 - Winsock, Auto find server using UDP Broadcast (LAN ONLY)
http://www.vbforums.com/showthread.php?t=422722
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
All Courses

From novice to tech pro — start learning today.