Quick Search for:  in language:    
TCPIP,perfect,example,used,program,demonstrat
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,014,970. lines
 Jobs: 119. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!Song/Poem Assistant
By Peter Rowan on 7/2

(Screen Shot)

Click here to see a screenshot of this code!GPA Cal
By KBM-00 on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Connection Via the Telephone line.No internet or cable.Just the telephone line
By Nass ClickMan on 7/2

(Screen Shot)

DBTool
By Make Strömberg on 7/2


Click here to see a screenshot of this code!MSChart Simple Example
By Sebastian Pereira on 7/2

(Screen Shot)

CString v1.5
By Ultimatum on 7/2


Tablature Pro
By Michael McMullen on 7/2


Click here to see a screenshot of this code!MSN Password Decryptor
By Muhammad Sufyan Ansari on 7/2

(Screen Shot)

Mp3 Paker
By Michael McMullen on 7/2


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

A TCP/IP Tutorial

Print
Email
 
winzip icon
Submitted on: 3/28/2000
By: Markus Delves  
Level: Beginner
User Rating: By 26 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code 28826 times.
 
 
     This is a perfect example of TCP/IP used in a VB program. It demonstrates how-to act as a client, or a server.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
4/10/2000 2:44:34 PM:S4man007
Nice program with good potential. I've 
been looking for IP info.
Thanks !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/10/2000 5:50:30 AM:DanSocks@hotmail.com
Dude your program looks sweet but i 
can't open it pleeze help me!!! i 
opened it in vb5, winzip, frm'z etc, no 
-one can help me so pleeze do!!!!!!!!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/26/2000 9:12:19 PM:Buster
this is no tutorial.. it is just a 
simple program demostrating tcp/ip used 
in a vb program. If it was a tutorial 
it would have stuctured information 
pertaining to each function of the 
program. And I am not quite sure why it 
is in the "beginner" category because 
it assumes that you have vb knowledge.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/27/2000 10:33:46 AM:Joe
Nice program with good documentation 
for every line. Simple and to the point 
so thanks for this great contribution
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/21/2001 9:04:54 AM:Carl Mercier
Very straightforward.  Exactly the kind 
of code I am looking for here.  Well 
commented and nothing fancy around it 
(ie: changing color buttons and 
such).
Thanks!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/16/2001 1:17:06 PM:pfweng@asia1.com
Good program,but i have this Error: 
Connection is forcefully rejected
i 
have test it with this setting:
Both 
PC_A and PC_B are able to see each 
other in network neigbhour.
PC_A has 
IP address of 127.168.0.1
PC_B has IP 
address of 127.168.0.2
PC_A will 
listen with Remote IP:127.168.0.2 and 
Local port:1001
PC_B will connect 
with Remote IP:127.168.0.1 and Remote 
port:1001
But PC_B has Error: 
Connection is forcefully rejected
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/16/2001 1:19:05 PM:eng
good program, but i have this  Error: 
Connection is forcefully rejected
my 
setting for this test are:
Both PC_A 
and PC_B are able to see each other in 
network neigbhour.
PC_A has IP 
address of 127.168.0.1
PC_B has IP 
address of 127.168.0.2
PC_A will 
listen with Remote IP:127.168.0.2 and 
Local port:1001
PC_B will connect 
with Remote IP:127.168.0.1 and Remote 
port:1001
But PC_B has Error: 
Connection is forcefully rejected
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/5/2002 5:55:03 PM:Ximo
Nice code! I have one question.. I 
always get that 40020 "Invalid 
operation at current state" in my own 
program, and once it tells me that, I 
never get the connection going again. 
What is it and how can I avoid it?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/3/2003 1:17:52 AM:Little Rabbit Foofoo
I got my own routine working.  I had to 
insert delays.  After connecting, I 
wait up to 5 seconds for the 
winsock.state to become 7 (connected.)  
That avoided the "invalid operation at 
current state"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.