70470 Posts in 6879 Topics - by 687 Members - Latest Member: Laricwashere

Author Topic: .NET sockets  (Read 1981 times)

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
.NET sockets
« on: June 21, 2008, 06:01:09 PM »
Hey I'm curious if anyone knows much about socket programming with .NET?

I have a completely functional chat program that I made in VB6 (and is currently uncrashable as far as I've been able to test it), and I had been trying to port it over into .NET for the past 2-3 months now. After 5 iterations of base socket code, and each attempt turning up some critical flaw in my designs, I've more or less given up on it until I can either find someone who knows the .NET socket namespace extensively, or I can find a pre-coded base that I can use that is similar to VB6's WinSock.

Just wondering if any of you can offer up some insight. And don't even think about linking me a googled reference. I have scoured google for ANY bits of info that would help me. That includes searches for C# and VB.NET (if you can understand one, it's not hard at all to understand the other). I'm looking for first-hand experience.

A sample of my VB6 app:



Just a basic chat app, for the most part. Been holding off on any additions until I got it ported over to .NET   ...SO! I need to get the damned thing ported over pronto.

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: .NET sockets
« Reply #1 on: June 22, 2008, 01:54:45 PM »
Ok, I finally found a .NET winsock substitute that is easy to use, Hardly buggy, and has all the features I need as well as safe thread cross-calling. We'll see how this goes :P

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: .NET sockets
« Reply #2 on: June 22, 2008, 09:23:29 PM »
And I solved my own problem =P



It's a lot less bulky, the code is more efficient, and it doesn't use as much system resources (legacy winsock uses a TON). Now to work on file transfers. Other than that, I currently have a very stable WORKING chat program in .NET =D

Offline Petch

  • Network Admin
  • Uber Gamer
  • *
  • Posts: 1621
  • Karma: 2
  • Steam ID: meekalpetro
Re: .NET sockets
« Reply #3 on: June 22, 2008, 09:51:24 PM »
*slow clap*   :clap:

Offline decepticon

  • Staff
  • Godlike Gamer
  • *
  • Posts: 5763
  • Karma: 6
  • aka "Deception"
  • Steam ID: seanryan52
  • XBox Gamer Tag: Decpticon
  • XFire: decepticon420
Re: .NET sockets
« Reply #4 on: June 23, 2008, 07:20:12 AM »
What is this ultimately for?  Chat client on the forums?
That's Mr. Deception to you.

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: .NET sockets
« Reply #5 on: June 23, 2008, 08:21:03 AM »
No, it's my own project. At first it started off as a chat program for the larger lans. I had a nice list of features that included more than just a chat room. I think mark went off to work on the other features himself. I just stuck to the chat part and it eventually morphed into something else.

It's now a strange mix of Chatroom + FPS (not exactly a MUD, but borderline). I'll post more screens when I have it fleshed out.

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
Re: .NET sockets
« Reply #6 on: June 23, 2008, 09:25:21 AM »
I was gonna say that this would be really nice to have intgregrated for the larger lans...Chat system would allow the word to get out quicker for pickup games and private hosts. Good job on figuring it out,

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: .NET sockets
« Reply #7 on: June 23, 2008, 09:42:01 AM »
Well, I still could do that along with what I'm doing hehe. I got the file transfers working this morning between client -> server (with progress bar!) , just need to have it send to a selected client in the user list now. But aside from that, yeah... could add some of those Large LAN features I was thinking of.

Offline DoubleG

  • Vintage VIP
  • Supreme Gamer
  • *
  • Posts: 475
  • Karma: 0
Re: .NET sockets
« Reply #8 on: June 24, 2008, 11:02:51 AM »
Would that include deleting people's hard drives for cheating? :P

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: .NET sockets
« Reply #9 on: June 24, 2008, 11:06:26 AM »
Is that a feature request?

Offline decepticon

  • Staff
  • Godlike Gamer
  • *
  • Posts: 5763
  • Karma: 6
  • aka "Deception"
  • Steam ID: seanryan52
  • XBox Gamer Tag: Decpticon
  • XFire: decepticon420
Re: .NET sockets
« Reply #10 on: June 24, 2008, 11:44:00 AM »
Would that include deleting people's hard drives for cheating? :P
 

F3ar0n wouldn't like that feature!  j/k
That's Mr. Deception to you.