RSS Forums RSS

TCPClient And TCPServer

Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
Reply
Posts: 6
Reputation: nlblnx is an unknown quantity at this point 
Solved Threads: 0
nlblnx nlblnx is offline Offline
Newbie Poster

TCPClient And TCPServer

  #1  
Nov 18th, 2008
Hi all,

Could anyone help me out here.... I'm trying to work out how to write a very simple server and client that I can first send a string through and then send a file to. For example, I'd send the file name and then the actual file.

Also, does anyone know how to encrypt this as well as just sending it over a plain connection?


Any help would be great.

Thanks in advance.
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,222
Reputation: ddanbe is just really nice ddanbe is just really nice ddanbe is just really nice ddanbe is just really nice 
Solved Threads: 163
ddanbe's Avatar
ddanbe ddanbe is online now Online
Nearly a Posting Virtuoso

Re: TCPClient And TCPServer

  #2  
Nov 18th, 2008
"If you judge people, you have no time to love them." Mother Teresa
Make love, no war. Cave ab homine unius libri.
First rule of debugging: "If you get a different error message, you're making progress."
Danny
Reply With Quote  
Posts: 6
Reputation: nlblnx is an unknown quantity at this point 
Solved Threads: 0
nlblnx nlblnx is offline Offline
Newbie Poster

Re: TCPClient And TCPServer

  #3  
Nov 18th, 2008
Originally Posted by ddanbe View Post
Check out this site:
http://www.dreamincode.net/forums/showtopic33396.htm


Thanks, I didn't see any TCPServer in use in that code sample, though it is quite helpful.

Do you have any samples lying around that would illustrate the following:

Sending a string from a TCPClient to a TCPServer
Sending a file from a TCPClient to a TCPServer

It's been a while since I touched anything like this you see and the last time I did anything like this was in Delphi, which was stupidly easy.


Thanks again.
Reply With Quote  
Posts: 1,222
Reputation: ddanbe is just really nice ddanbe is just really nice ddanbe is just really nice ddanbe is just really nice 
Solved Threads: 163
ddanbe's Avatar
ddanbe ddanbe is online now Online
Nearly a Posting Virtuoso

Re: TCPClient And TCPServer

  #4  
Nov 18th, 2008
I have not something ready on my shelf.
But from the same site I have : http://www.dreamincode.net/forums/showtopic56828.htm
Last edited by ddanbe : Nov 18th, 2008 at 2:04 pm.
"If you judge people, you have no time to love them." Mother Teresa
Make love, no war. Cave ab homine unius libri.
First rule of debugging: "If you get a different error message, you're making progress."
Danny
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the C# Forum
Views: 1353 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:30 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC