Jump to content

C# networking

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Siten0308

Siten0308

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 302 posts
Hello,

I am starting to get into C# and networking, wondering, how it works, how do you do it, and what is a nice basic program i can make, or what would you recommend that i can show off to an employer, not to difficult but good to show that i know how to do it sort of thing :) what are the things that you would create in a typical employee environment or employer would ask you to make that involves networking, also how would that incorporate with linq to sql or data adaptors with datasets?

Thanks all in advance
Its only funny till someone gets hurt.... THEN ITS HILARIOUS :)

#2
so1i

so1i

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 312 posts
I've recently been teaching myself some basic networking techniques in C#, and to be honest the basic things aren't that hard to grasp as the .NET environment makes it quite simple! The main basic principles are to have a client sending out the data, and a listener on the other end, at a specific port, ready to accept the data. Both of which can be done using the socket programming within C#, most of which is predefined.

A nice easy start to network programming is probably the usual Instant Chat Messenger, or a p2p file transfer program, something like that, each which can be nicely done using C#, without too much taxing work.

Here is quite a nice tutorial on a simple chat messenger, and I found just working through the code and understand what each bit was doing really helped!

Not really sure what to suggest to show off to employers though, but at least you will have a basic grasp of networking in C#. If you have done it in any other .NET languages btw, it's very similar!

Good luck, hope I have been a little bit of help! :)

#3
Siten0308

Siten0308

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 302 posts
thanks for the link yes your response did help a lot thank you, you also made up my decision, i am first going to make a simple chat or even better... make an ftp app. does anyone think that would be hard to make, ftp app? or should i just stick with the chat app to get feel for for .net networking, thanks for yuor help again, found a nice website that told me that using namepspace system.net and system.net.socket would pretty much cover what i need and just add the classes, which makes sense too me, thank god for C#, C++ who know how hard it would be right? but what do you guys think again, instant messanger or make an ftp?

Thanks

what do you guys also think
here is the stuff i know so far:

--C#
--tiny bit of wpf
--C# with xml
--C# with sql
--C# with linq to sql


do you guys think i can go for a entry level job because i also want to learn more below:

--advance my wpf skills
--use wpf for web apps with C#
--more gui interfaces like images, videos etc.
--C# with networking (which i am going to do now or learn)

if there is anything else i should learn that will help me get an entry level job please let me know.
Its only funny till someone gets hurt.... THEN ITS HILARIOUS :)

#4
gaylo565

gaylo565

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 268 posts
I recently designed a print manager to keep track of how much each client on the network is printing and to manage which printers (we have some blue print and other specialty printers) can be used by which clients and how much so. This is a very usefull application and could be modified in several ways acording to your needs. It helps if you already have an active directory system up and running, but this doesn't take much time to design an easy one if it is just for your own practice. This is just one of many different projects that could be done but having done it recently at my job I could recomend it as good practice.

#5
Siten0308

Siten0308

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 302 posts
Hey Gaylo

thanks for the idea, hope you dont mind me trying to create one myself, we do have an Active directory at work, and a print server, maybe i could create an app that shows a status of who was printing to what printer and write it to a notepad or something that can display in a listview, what do youthink? it would be written maybe even to a xml document, which would you prefer? also can i take a crack on how you did that?

you used an AD object that scans the user lists in AD, then compares it to who is actually using the print, then scans which IP (which obviously would be the printer ip) and finds if the user is printing on which printer then writes the info on a file or database to be displayed, is that how you did it, if not let me know please :) i would like to know so i can get an idea then try and write the app, this would be an awesome app to show off to employers my skills including networking skills :) if not no worries, i will try and think of something else.

Thanks
Its only funny till someone gets hurt.... THEN ITS HILARIOUS :)

#6
so1i

so1i

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 312 posts
That sounds like a nice little app. to write! I'd also be quite interested in how you got started on that.

#7
gaylo565

gaylo565

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 268 posts
Yup thats pretty much how it works...It just stops each print job before It is sent to the printer and then checks to make sure that it is allowed to print with the current user and then records the print event (either allowed or not) to an sql db file for which I have an online frontend which can be used for each viewer to see how many print jobs they have performed/how many more they are allowed, as well as allowing the admin to view all info and change the permissions to thier liking. I definitely recomend this as a network programming project and wish you the best of luck...If you come accross any impasses post away and I will do my best to help you out if you decide to go with this project.

#8
ArekBulski

ArekBulski

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,376 posts
Interesting stuff, guys. Here is a little project of mine, as another example. I had an experimental instant messenger (Gaduzila), which used TCP/IP connections between client apps and server app. So another idea would be a communicator, as they mentioned, that would allow texting and maybe transferring files. But I still like the printing project... :)