CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 118 users online: 0 members, 99 guests and 19 bots.
Members: None.
Bots: Spinn3r (1), Magpie Crawler (2), Googlebot (16).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page 1, 2, 3, 4  Next
» View previous topic :: View next topic  
Author Message
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 20 Jan 2011 06:53:11 pm    Post subject: CALCnet C# Library

So I've started working on a C# library that makes doing stuff with CALCnet on the computer pretty simple. As a demonstration I made a program to work with Chat!, here's a screen shot:

I need to do some more work with the code, and next I'm making a netpong client, but it should be ready to be released within a few days (depending on when I work on it). Here's some sample code to show how you use it:

Code:
var c = new CALCnet("IRCHub", "testname", "gcnhub.cemetech.net", 4295, CalcID);
c.Connect();
c.SendBroadcast(UserNameBytes);
So this creates a new calcnet object connecting to gcnhub.cemetech.net:4295, talking to IRCHub with the local name testname, and the given calc id (you have to make one up). It then connects to it, and then sends a broadcast packet with the calcID and the user name for Chat!.

It's pretty straight-forward to use. I don't know how useful this actually is to anyone, but it was fun to make Smile
_________________
Shaun


Last edited by merthsoft on 21 Jan 2011 01:45:22 pm; edited 1 time in total
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 20 Jan 2011 06:55:14 pm    Post subject:

Looks very nice. This could be useful for adding CALCnet/gCn capabilities to WabbitEmu.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 20 Jan 2011 06:57:54 pm    Post subject:

Oh, I hadn't even though of that. I'd be happy to help wabbitemu Smile
_________________
Shaun
Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 06:58:45 pm    Post subject:

Hmm, now I wonder, where is the CALCnet class you are creating? (I mean the source, so I can understand this better Razz) other than that, looks pretty nice Very Happy I wanna test!
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 20 Jan 2011 07:00:20 pm    Post subject:

qazz42 wrote:
Hmm, now I wonder, where is the CALCnet class you are creating? (I mean the source, so I can understand this better Razz) other than that, looks pretty nice Very Happy I wanna test!
It'll all be available once I get it cleaned up and get the netpong demo done, too.
_________________
Shaun
Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 07:02:26 pm    Post subject:

Ah, fine! I guess I could wait... Razz

I am actually quite interested on seeing how the Connect() method if going to have calc -> comp interactions (assuming it does that..)
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 20 Jan 2011 07:08:00 pm    Post subject:

qazz42 wrote:
Ah, fine! I guess I could wait... Razz

I am actually quite interested on seeing how the Connect() method if going to have calc -> comp interactions (assuming it does that..)
This completely abstracts away the calc, so it just creates a socket and connects to gcnhub.cemetech.net.
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55874
Location: Earth, Sol, Milky Way

Posted: 20 Jan 2011 07:44:40 pm    Post subject:

merthsoft wrote:
Oh, I hadn't even though of that. I'd be happy to help wabbitemu Smile
Oh snap, I hadn't really thought of that either, that would be excellent! You'd still need the equivalent of the Arduino to convert the Cn2.2 messages to data/clock lines states.
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 07:46:16 pm    Post subject:

Soooo, Arduino emulator? Judging by google, there seems not to be one.... how would that play out? O-o perhaps Kerm can write something in python or something?
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 20 Jan 2011 07:47:05 pm    Post subject:

That could be done in code.
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55874
Location: Earth, Sol, Milky Way

Posted: 20 Jan 2011 07:50:26 pm    Post subject:

qazz42 wrote:
Soooo, Arduino emulator? Judging by google, there seems not to be one.... how would that play out? O-o perhaps Kerm can write something in python or something?
Perhaps you didn't Google hard enough, then, because somehow even Sonlen found two different Arduino emulators. Nevertheless, running my Arduino code in an emulator would be a rather inefficient way to build gCn into WabbitEmu.
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 07:51:53 pm    Post subject:

Hmm, still cant find anything... strange.... could you direct Sonlen here to give me the links perhaps?
_________________


Back to top
Sonlen


Calculator Deity


Joined: 25 Aug 2010
Posts: 1679

Posted: 20 Jan 2011 07:56:13 pm    Post subject:

Emulare

Emulino

Those are the 2 I found.
_________________
comicIDIOT wrote:
KermMartian wrote:
Stop double-posting. If you can't edit your posts, delete your old post before you post a new post.
I am too lazy to actually make my own post so instead I quote people and then don't say anything new


dragon1414@att.net / Google and Yahoo E-Mail
Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 08:02:50 pm    Post subject:

Ah, thanks Sonlen, I did not find theses for some reason Sad
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55874
Location: Earth, Sol, Milky Way

Posted: 20 Jan 2011 08:39:17 pm    Post subject:

Anyway, this is all very nice and exciting, but I think it belongs in another thread. Let's stick with what it means that Shaun managed to write C# gCn drivers for now, and what he/you could directly use them for.
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 08:41:43 pm    Post subject:

I would have to admit, somehow connecting the calc to the emulated arduino so it is connected to irc would be nice.... although, I would assume that the Silverlink would not want to cooperate.... perhaps somehow using USB would work mabye.... but then it would be limited to TI-84+/se users... [/rambling]
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 20 Jan 2011 08:43:50 pm    Post subject:

qazz42 wrote:
I would have to admit, somehow connecting the calc to the emulated arduino so it is connected to irc would be nice.... although, I would assume that the Silverlink would not want to cooperate.... perhaps somehow using USB would work mabye.... but then it would be limited to TI-84+/se users... [/rambling]
As Kerm said, we're getting out of the scope of this topic right now.
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55874
Location: Earth, Sol, Milky Way

Posted: 20 Jan 2011 08:44:09 pm    Post subject:

qazz42 wrote:
I would have to admit, somehow connecting the calc to the emulated arduino so it is connected to irc would be nice.... although, I would assume that the Silverlink would not want to cooperate.... perhaps somehow using USB would work mabye.... but then it would be limited to TI-84+/se users... [/rambling]
That's not moving to the topic at hand. Razz Don't think that gCn is just about IRC; IRC just happens to be one particular internet service that I welded into the gCn framework. The main function of gCn is to connect networks of calculators across the internet for the sake of chatting, sharing files, playing games, etc. Merth's library is awesome because it means we could have computer-side versions of Cn2.2 calculator games like Netpong, Obliterate, CALCnet Tournament, etc to play the same game between calculators and computers.
_________________


Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4179

Posted: 20 Jan 2011 08:53:26 pm    Post subject:

Hmm, I would use his libraries for making a txted based game and have some multi player things on it like trading items and all that jazz
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55874
Location: Earth, Sol, Milky Way

Posted: 22 Jan 2011 11:58:26 pm    Post subject:

Then you'd also have to create a calculator-side client for the game as well, of course. Smile Right now Merth is writing a computer-side NetPong client for gCn.
_________________


Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2, 3, 4  Next
» View previous topic :: View next topic  
Page 1 of 4 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.038284 seconds.