Page 1 of 1

Remnant Chat Beta (Uses UDP)

Posted: Mon Jun 23, 2014 6:46 pm
by Click16
Hey, I've been getting more and more interested in network programming, and I decided to just revisit this old project just for fun. I completely removed the old FTP style, and now its all UDP network code.

If you want to download this and help me test it, you can download the attachment, or from the Dropbox Link.

Remnant Chat (Dropbox)

Image

Re: Remnant Chat Beta (Uses UDP)

Posted: Tue Jun 24, 2014 12:07 am
by troymac1ure
Seems like a much better solution than FTP ;) Next time I'm on my laptop I'll d/l it & fire it up.

Re: Remnant Chat Beta (Uses UDP)

Posted: Wed Jun 25, 2014 4:45 am
by Click16
Updated the attachment because of an error with the client.
Addressed an issue where the client times out and stops accepting the server's packets after a certain period of time, fixed this by sending a test packet to the server, than back to the client every 10 seconds.

Oh and I made the window flash if it doesn't have focus and a message is received.

Re: Remnant Chat Beta (Uses UDP)

Posted: Thu Jun 26, 2014 12:06 am
by Click16
Updated the client once more

Re: Remnant Chat Beta (Uses UDP)

Posted: Fri Jun 27, 2014 9:18 pm
by Click16
Big client update, Added client-end command support, whispering (or private messaging), and client text colors. Also increased packet size so more text can be sent per message

Re: Remnant Chat Beta (Uses UDP)

Posted: Sat Jul 05, 2014 6:58 pm
by OwnZ joO
So why did you decide to go with UDP over TCP?

Re: Remnant Chat Beta (Uses UDP)

Posted: Sat Jul 05, 2014 9:05 pm
by Click16
UDP is a connectionless protocol, which makes it easy to handle multiple users on a single port, where I believe TCP can only have one client connected at a single time which would be doable, but there might be a delay between when you try to send a message, and when the server actually accepts the request. Also TCP seems to be slower.

Re: Remnant Chat Beta (Uses UDP)

Posted: Sat Jul 05, 2014 11:49 pm
by OwnZ joO
You can have multiple connections to the same port on a server, the server listens on that port and then binds to any incoming connections. The process of binding to the client creates a socket that uses an ephemeral port so the server writes to the clients on different ports. If you're trying do to a chat app then I would guess you might want to go with TCP as it has guarantees that it will reliably deliver the data you send, in the order that you sent it or at least let you know that it failed. The reason UDP is faster as that it doesn't have any of those guarantees, it is usually used for like streaming video and other stuff where performance is more important than correctness 100% of the time.

Re: Remnant Chat Beta (Uses UDP)

Posted: Wed Jul 09, 2014 6:14 am
by Click16
Updated to version 1.4.0.0 The server software is going to be running all the time now, so you should be able to connect anytime now!

Re: Remnant Chat Beta (Uses UDP)

Posted: Wed Jul 09, 2014 9:28 am
by troymac1ure
Thought I'd see how it was... Crash! Happens right after hitting "Join"

Re: Remnant Chat Beta (Uses UDP)

Posted: Wed Jul 09, 2014 7:11 pm
by Click16
Hmm that's strange because I'm not getting any errors. I could probably release it with the PDB files, so when it crashes, you can attach the program to VS and see what line of code threw the exception.

EDIT: Looking at the server output, the server said you were joining, but I'm guessing the crash caused you to time out.

Re: Remnant Chat Beta (Uses UDP)

Posted: Sat Jul 12, 2014 6:56 pm
by troymac1ure
Post the PDB up, still crashing.
Image

Re: Remnant Chat Beta (Uses UDP)

Posted: Sat Jul 12, 2014 8:19 pm
by DoorM4n
I think this is the beta. Use the new one he gave me a few days ago.

Re: Remnant Chat Beta (Uses UDP)

Posted: Sun Jul 13, 2014 4:51 am
by Click16
Updated to version 1.5.0.1

Re: Remnant Chat Beta (Uses UDP)

Posted: Sat Aug 02, 2014 8:27 am
by Click16
Updated to 1.5.0.2. This version allows you to disable the warning message when you click on a link in chat.

Re: Remnant Chat Beta (Uses UDP)

Posted: Wed Jun 03, 2015 7:01 am
by Click16
*caugh* bump, Updated to v1.5.0.3 I don't know what was changed, but the project's version didn't match this release's. :P