Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Post WinSock control
Reply
Posted 2002-10-18, 09:45 AM
Does anyone have a good routine to check for errors in Visual Basic 6.0 connection using the UDP protocol. I want the machines using the connections to receive acknowlegment that the receiving computer has received the original message, and that the sending computer has received the confirmation that the receiving computer has acknowledged its reception.
Old
Profile PM WWW Search
Dasher is neither ape nor machine; has so far settled for the in-betweenDasher is neither ape nor machine; has so far settled for the in-between
 
 
Dasher
 



 
Reply
Posted 2002-10-18, 11:25 PM in reply to Dasher's post "WinSock control"
I havent used UDP protocol much, but heres what I usually do:

I believe with UDP protocol, you must bind the winsocks to each other--but anyways after you have sent the first data from w1 to w2, tell the w2 on data arrival, w2.senddata strTest-- then on the w1 data arrival, w1.getdata strTest2. Just put a msgbox or something to display the string test2. If this is confusing, Ill make it clearer, or just pm me.
Old
Profile PM WWW Search
drivehappy is neither ape nor machine; has so far settled for the in-betweendrivehappy is neither ape nor machine; has so far settled for the in-between
 
drivehappy
 



 
Reply
Posted 2002-10-21, 02:53 PM in reply to Dasher's post "WinSock control"
Thanks will try that with my new version. Still working on it trying to use as many objects as i can
Old
Profile PM WWW Search
Dasher is neither ape nor machine; has so far settled for the in-betweenDasher is neither ape nor machine; has so far settled for the in-between
 
 
Dasher
 



 
Reply
Posted 2002-10-21, 02:57 PM in reply to Dasher's post "WinSock control"
Dang sorry got cut off there. I have been trying to use objects for the message and users. I will try your solution when I get back to it. Working on some notes scripting right now. Thanks again though.
Old
Profile PM WWW Search
Dasher is neither ape nor machine; has so far settled for the in-betweenDasher is neither ape nor machine; has so far settled for the in-between
 
 
Dasher
 



 
Reply
Posted 2002-10-28, 07:42 PM in reply to Dasher's post "WinSock control"
Well that sentence about using as many objects as you can... we're you reffering to winsock controls? If so make an array of the host and client, then delete the ones you had to copy to make the array (so you're only left with the host and client wns. control). Then make a command button, put in a "Load wnsHost(wnsHost.Count + 1)" statement same with the client. Make sure you're winsock functions converted to the array style, then use a For loop to send multiple messages thru however many you made. You could even make a for loop for creating the controls... get up to like 1000 going at once that'd be interesting.
Old
Profile PM WWW Search
drivehappy is neither ape nor machine; has so far settled for the in-betweendrivehappy is neither ape nor machine; has so far settled for the in-between
 
drivehappy
 



 
Reply
Posted 2002-10-29, 01:40 PM in reply to Dasher's post "WinSock control"
Sounds like a good way to clog up a network lol. No what I ment was that I was building an object to translate the messages that are sent and received and an object to keep user info and access priority. For example a msg consisting of 47563933 would be sent to a new object where that info would be stored and/or cause the object to perform some action. Right now it uses no objects it just translates the msg as it comes in. The number of if then and case select statements in one function or procedure are getting out of hand. New question. I am thinking of having it scan IP address looking for another computer with the software on it that will answer back. Right now I use a static IP on the server machine and all the clients log in there first.
Old
Profile PM WWW Search
Dasher is neither ape nor machine; has so far settled for the in-betweenDasher is neither ape nor machine; has so far settled for the in-between
 
 
Dasher
 



 
Reply
Posted 2002-11-01, 10:07 PM in reply to Dasher's post "WinSock control"
Hmm well to answer your question, you could do 2 things. The first thing you could do is have your server scan a range of ip addresses, using a for loop. Or you client could automatically try to connect every 15 seconds or so, using a timer object. This last one i've tried, but a long time ago, and i believe i made it search really fast (like try connecting over and over again within a second), this resulted in an error, which if my memory serves was something like this: you can't attempt more than like 34,000 connections on the wns control. I dont know, you could try this, i dunno. If you have anymore questions, feel free to post
Old
Profile PM WWW Search
drivehappy is neither ape nor machine; has so far settled for the in-betweendrivehappy is neither ape nor machine; has so far settled for the in-between
 
drivehappy
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:48 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.