Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: BSDSocket Library  (Read 4326 times)

0 Members and 1 Guest are viewing this topic.

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
BSDSocket Library
« on: August 15, 2009, 08:27:35 PM »


I found this package on Aminet today

http://aminet.net/package/dev/amos/BSDSocket

looks like a few nice routines, but i have a couple of queries perhaps you chaps can help with.


Firstly, is that it uses some extension command(s) which I dont have - would anybody be able to identify what extension is used in the A$= .. etc  line of the SOCK_OPENSERVER[SPORT] procedure, and/or suggest an alternative command (perhaps something out of AMCAF? it's only a string function) - there are a couple of others futher down, all seemingly string functions, but its hard to fix without knowing what the commands are meant to do.


My second question, is whether anyone has an experience implementing something like this? network coding has never been my thing, but i'm keen to give it a try - i'd imagine that on a practical level, it ends up being like the serial network functions AMOS already has. I'd welcome any hints & tips that can be given here.

The sort of things i can see myself asking early on, in order to implement this into some AMOS games;

- how would you set up host/server and gamelists, so scan for other players?
- Would the above be too complex, and instead it need to be manually entered IP's and just P2P?
- What is the best way to share data between the two copies of the game?
- Do you look to minimise the data sent? If so, how do you ensure the games stay in-sync?
- Is one just updating the other, or is the "load" shared on processing each game cycle?


Lastly, i cant help but ask - would these routines benefit from being implemented as a nice new extension, and how difficult would it be for someone to make that extension with this already available?


advice appreciated.
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Overclocked

  • A600
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: BSDSocket Library
« Reply #1 on: August 15, 2009, 10:32:00 PM »

Hi Horace,

Looked at the link and it appears most of your questions are already answered in the help text below the file.
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: BSDSocket Library
« Reply #2 on: August 16, 2009, 03:09:29 AM »

I loaded the routines into my system and discovered that it reqires extension Q.  According to Lonewolf10's chart on AmigaCoding.com, it is the EasyLife extension that it needs.  You can find that in the bonus drawer of the IntuiExtend package on the Aminet.

-edit-
BTW, Extension Q corresponds to slot 16.
« Last Edit: August 16, 2009, 03:25:46 AM by SamuraiCrow »
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: BSDSocket Library
« Reply #3 on: August 16, 2009, 05:39:23 AM »


Looked at the link and it appears most of your questions are already answered in the help text below the file.

not on a practical aspect. it says how to push data each way, what the functions are, and with very little detail.

i know nothing about how to go about using sockets/network connections (frankly, such things bore me, but i like the idea of using it for multiplayer gaming) and thus why i'm asking how you'd actually go about applying this into usage with a game. I'm sure i could use that to open it up and move some data, but that doesnt really help when i comes to putting it into a program and finding the most efficient / suitable ways of keeping 2 (or more) copies of one game working together.

Quote from: SamuraiCrow
I loaded the routines into my system and discovered that it requires extension Q.  According to Lonewolf10's chart on AmigaCoding.com, it is the EasyLife extension that it needs.  You can find that in the bonus drawer of the IntuiExtend package on the Aminet.

thanks SamuraiCrow. I'm reluctant to add another extension purly for a few string commands, so i'll install it, see what they do, and see if i can use alternatives from AMCAF instead.
« Last Edit: August 16, 2009, 05:45:40 AM by Hungry Horace »
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022