Git Product home page Git Product logo

ahksock's Introduction

AHKsock - A simple AHK implementation of Winsock (TCP/IP)

AHKsock is a high-level wrapper which I have written to facilitate the use of the Winsock APIs in AHK. It will allow you to create clients and servers that can communicate with each other, purely written in AHK! Forum thread is [here] (http://www.autohotkey.com/board/topic/53827-ahksock-a-simple-ahk-implementation -of-winsock-tcpip/).

AHKsock includes three examples:

  • In Example 1, the server listens for clients and sends some data to any client that connects. This is a very simple example to show the basics of AHKsock.
  • In Example 2, the server sends a file to any client that connects. There are three types of servers. The first one uses the TransmitFile() function provided by Windows while the second one reads from the file itself and transfer to a single client at a time. The third type can serve multiple clients simultaneously.
  • In Example 3, two peers connect to each other to start chatting. This is a great example of a symmetrical connection. Whichever is started first becomes the server, while the second becomes the client. However, they both behave in exactly the same way once connected to each other.
  • In Example 4, we can look up IPs from hostnames and vice-versa.

Additional resources on Winsock and sockets in general:

ahksock's People

Contributors

bengood avatar jleb 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.