XSocket Ethernet library
Posted: Sun Feb 21, 2010 12:33 am
If you have tried to use the web server example to get your Ethernet project going you probably cant count how much hair you lost over trying to make something with it. Its really hard to figure out how to use it and the code in the end is very messy. It doesn't have to be this way. Using ethernet on a PC is a breaze with the windows sockets interlace or WinSock for short. It simplifys the whole networking thing down to a few commands to listen,connect,and read/write the built in receive and transmit buffers. Why not bring this simplicity to the xmos platform so even someone realtivly new to C can get a basic networking app running in minutes.
The goal is to create a proper library that can mimic the basic functions of the winsock API to make networking on xmos a breeze. Basic idea is to create these sockets that each can have 1 connection open on it and a few basic commands to control them and transfer data on that socket.With this simplified API we can create a webserver in about 10 lines of easy to read code.
So we got a basic implementation of the API that works but is still very messy.I do not recommend using it yet, but highly encourage people to take a look and improve on it. There are a lot of xmos boards with built in ethernet but no framework for creative users to build on.
If this project really takes off we might see a upgrade to the API that has built in modules like webservers, FTP servers, E-mail clients etc to even further simplify the creation of networked apps
Project page: Winsock API Ethernet driver
Its time to make networking simple as it was meant to be!
Read
The goal is to create a proper library that can mimic the basic functions of the winsock API to make networking on xmos a breeze. Basic idea is to create these sockets that each can have 1 connection open on it and a few basic commands to control them and transfer data on that socket.With this simplified API we can create a webserver in about 10 lines of easy to read code.
So we got a basic implementation of the API that works but is still very messy.I do not recommend using it yet, but highly encourage people to take a look and improve on it. There are a lot of xmos boards with built in ethernet but no framework for creative users to build on.
If this project really takes off we might see a upgrade to the API that has built in modules like webservers, FTP servers, E-mail clients etc to even further simplify the creation of networked apps
Project page: Winsock API Ethernet driver
Its time to make networking simple as it was meant to be!
Read