EASy68K  
It is currently Mon May 22, 2017 7:19 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Wed Jan 11, 2006 4:23 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Add TCP & UDP communication capability via Trap #15.

Suggested by ABeakyboy :wink: I think he wants a multi-player EasyZone :thumbup:

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Wed Jan 11, 2006 3:53 pm 
Offline

Joined: Tue Nov 15, 2005 7:58 am
Posts: 128
Location: Oregon, USA
profkelly wrote:
Add TCP & UDP communication capability via Trap #15.

What level would that be implemented as? Sockets?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 9:03 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Yes, sockets.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 10:23 pm 
Offline

Joined: Mon Dec 20, 2004 6:03 pm
Posts: 50
Lol! I'm willing to do this, if someone says that they will use it. I'm pretty good at network sockets.

I was thinking start with UDP and then MAYBE go to TCP.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 3:20 pm 
Offline

Joined: Tue Nov 15, 2005 7:58 am
Posts: 128
Location: Oregon, USA
ABeakyboy wrote:
I was thinking start with UDP and then MAYBE go to TCP.

That sounds like a good plan, though I don't know what I'd personally use it for. I've never done any socket-level programming. Know of any on-line tutorials?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 4:03 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
I think it would probably look something like this:

Trap Task

60: Create UDP server
D0 = port number
D1 = IRQ level, (creates an IRQ when data arrives)
=0 to turn off IRQ
A0 = address of receive buffer (max length 64K)
etc

61: Get status of UDP server
D0 = 0, no data
D0 = 1, new data received
D0 = 2, error in last reception
D1 = IP of sender
etc

62: etc

You would set up a server and/or client and then send and receive data using the appropriate trap task. Sim68K would take care of formatting the data into the proper UDP or TCP format. The assembly level program would only need to deal with the data that was sent or received.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 5:44 pm 
Offline

Joined: Mon Dec 20, 2004 6:03 pm
Posts: 50
Yeah.....I'd also have to decide if I wanted to use Borland's sockets or the win APIs........both have advantages and disadvantages.


Top
 Profile  
 
PostPosted: Sun Jan 15, 2006 4:19 am 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
profkelly wrote:
Suggested by ABeakyboy :wink: I think he wants a multi-player EasyZone :thumbup:

Thinking on this I can now see how to re-arrange things to have many active objects in the game.

ABeakyboy wrote:
I'm willing to do this, if someone says that they will use it.

Go on then. 8^)=

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 16, 2006 12:43 am 
Offline

Joined: Mon Dec 20, 2004 6:03 pm
Posts: 50
ok I might play around with it sometime.....we'll see how busy I am this semester


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 01, 2010 1:15 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
My current Assembly Language class is doing a group project that could make use of network communications so I will be attempting to add this feature.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 24, 2010 12:46 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Network support added to version 5.4.0.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group