Results 1 to 3 of 3

Thread: need advice for network communication

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111

    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

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    the sockets.socket class is for working with raw socket data. would be easier to just use the tcp stuff.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111
    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
  •  



Click Here to Expand Forum to Full Width