|
-
Sep 20th, 2002, 01:09 PM
#1
Thread Starter
Lively Member
need advice for network communication
I'm new to C#, however, I've been programming in various other languages for years. I've been desperately wanting to learn C# since I heard it was coming out. Anyways, in order to learn it, I have an idea for a program I want to create, but I need some adivce from some of you experienced folks out there to point me in the right direction.
What I want...
A client/server app (two separate apps)
when the client connects to the server, they exchange some information, some of which being username/password, and then a few commands, eventually leading to file transfer from client to server, then another file transfer from server to client. I would like the files to be encrypted throughout the transfer, I was going to use a scheme similar to that outlined here:
http://msdn.microsoft.com/library/de...yptingdata.asp
Should I use the socket class or the tcpListener/tcpClient stuff to establish the connection. I'm sure both can do the job, but which do you guys suggest for this specific task. Both will allow two way communication, right?
Thanks a lot,
Jacob438
-
Sep 20th, 2002, 01:23 PM
#2
the sockets.socket class is for working with raw socket data. would be easier to just use the tcp stuff.
-
Sep 20th, 2002, 03:28 PM
#3
Thread Starter
Lively Member
if I use the TCP stuff I will still be able to set it up to work asynchronously, correct?
Also, will I still be able to use the encrypted streams?
I see several code samples for using the sockets, but not much for the TCP. Since the TCP is a higher level class, I'm sure you lose some functionality in exchange for easier use, so basically, would I lose anything that would be necessary for this app?
Thanks,
Jacob438
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|