Giter Site home page Giter Site logo

sea-server's Introduction

sea-server: 'hello world!'

Want a server written in C that is waiting to send you what you need whenever you need it, and do it stupidly fast?

Cool, lets build it.

sea-server is based on code from Beej's Guide to Network Programming, and explains in depth about C socket programming. So definitely check that out.

Steps to awesomeness:

  1. Clone [email protected]:selbyk/sea-server.git
$ git clone [email protected]:selbyk/sea-server.git
$ cd sea-server
$ ls -al

output:

$ ls -al
total 16
drwxr-xr-x 1 selby users   78 Oct  4 17:47 .
drwxr-xr-x 1 selby users  406 Oct  4 17:10 ..
-rw-r--r-- 1 selby users    0 Oct  4 17:47 .gitignore
-rw-r--r-- 1 selby users 8078 Oct  4 17:36 Makefile
-rw-r--r-- 1 selby users 1694 Oct  4 17:45 README.md
-rw-r--r-- 1 selby users 3286 Oct  4 17:14 sea-server.c
  1. Build the server
$ make

output:

$ make
g++  -g -O2 -Wall -c sea-server.cpp -o sea-server.o
g++  -g -O2 -Wall  ./sea-server.o  -o sea-server
Type ./sea-server to execute the program.

If you run into problems here, make sure you have the build-essentials installed. They contain gcc, g++, make, etc. and are required to build C code. If you run windows, let me know what you need to do to get running.

  1. Run the server
$ ./sea-server

output:

$ ./sea-server
server: waiting for connections...
server: got connection from 127.0.0.1
server: got connection from 127.0.0.1
server: got connection from 127.0.0.1

Congrats, you're all set up!

Open localhost:3490 in a web browser or run the command telnet localhost 3490, and sea-server should have a greeting waiting for you.

Don't know where this project is going, but I have some ideas if you're open to collaboration. You can find me in #sentiment on chat.freenode.net, by e-mail, or can stalk me down any other way.

Just don't show up at my apartment at 3 AM. Not cool, bro.

-Selby Kendrick

sea-server's People

Contributors

selbyk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.