DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   TCPClient And TCPServer (http://www.daniweb.com/forums/thread158109.html)

nlblnx Nov 18th, 2008 2:13 pm
TCPClient And TCPServer
 
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.

ddanbe Nov 18th, 2008 2:17 pm
Re: TCPClient And TCPServer
 
Check out this site:
http://www.dreamincode.net/forums/showtopic33396.htm

nlblnx Nov 18th, 2008 2:24 pm
Re: TCPClient And TCPServer
 
Quote:

Originally Posted by ddanbe (Post 738881)

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.

ddanbe Nov 18th, 2008 2:36 pm
Re: TCPClient And TCPServer
 
I have not something ready on my shelf.
But from the same site I have : http://www.dreamincode.net/forums/showtopic56828.htm


All times are GMT -4. The time now is 11:26 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC