Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

client server apps over internet

Status
Not open for further replies.

lordhuh

Programmer
Apr 25, 2000
96
US
i do alot of programing on the side and i now want to expand my program to communicate to users over the net.  i am pretty shure i can do it using winsock the only cache is is that i dont know how.  if any one could please tell me how or redirect me to a place that can i would be greatly appreciative.  thanks
 
This is a big question; books have been written on this subject.<br><br>Could you break it down a little?<br><br>Is it that you want to write new applications that work over the Internet?<br><br>Or is it that you want your existing VB programs to run over the Internet?<br> <p>Mike<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
If you do I recommend using Catalyst socketwrench. <A HREF=" TARGET="_new"> That's what I use for all my TCP/IP programming and it seems to work fairly well...<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;John Stephens
 
clarification:<br>i want to basically just send a few variables over the net.&nbsp;&nbsp;and it would be in a new program.&nbsp;&nbsp;idea is partly based on old programs (but written from scratch) <p>Karl Pietri<br><a href=mailto:lordhuh.pota.to>lordhuh.pota.to</a><br><a href= > </a><br>
 
Karl,<br><br>It is fairly easy (up to a point) to use the Microsoft Winsock control to exchange data with a remote computer and there are some good examples in the Help files that come with VB. I'm sure that the product John mentions is fine as well.<br><br>The complexities come when writing a server side program that is able to deal with:<br><br>1) An unknown (possibly very large) number of concurrent connections.<br><br>2) Dealing with unusually high loads, when many remote computers try to commnucicate with the server at the same time.<br><br>3) Connections that go away - user has logged off, Internet has melted, etc...<br><br>My starting point for this was the MS Help files and I didn't have too much trouble - but this was for an internal application with a known number (200 or so) concurrent connections.<br><br>Mike <p>Mike<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
ok i have played around with both winsock and catalyst socket wrench both i cant get to work.&nbsp;&nbsp;i am trying to write a program to roll dice on every ones screen that is connected i will have no more than 20 concurrent connections.&nbsp;&nbsp;i am really stumped if any one could maby send me an example client and server program it would be great, or direct me to where there is a little less cryptic help files than msdn would also be great.&nbsp;&nbsp;thanks<br><A HREF="mailto:lordhuh@home.com">lordhuh@home.com</A> <p>Karl Pietri<br><a href=mailto:lordhuh.pota.to>lordhuh.pota.to</a><br><a href= > </a><br>
 
Hi Karl,<br><br>Have another look at the example client/server progs in the Winsock Control section of VB Online (that comes with VB).<br><br>Could I suggest that you write a couple of example programs first? No nice graphics stuff (your program sounds cool by the way) at first. Just start by figuring out how to pass messages reliably between client and server. Look closely at the servers that are designed to deal with multiple connections.<br><br>Regards<br> <p>Mike<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>Please don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
LordHuh-<br><br>You may also want to look at the other thread here that discusses waiting for the Winsock control to go into an idle state before sending.<br><br>Chip H.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top