Skip to content

A library written in C to provide simple IPv4/TCP and IPv6/TCP sockets in Lua

Notifications You must be signed in to change notification settings

NerLOR/multisocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua Multisocket

A library written in C to provide simple IPv4/TCP and IPv6/TCP sockets in Lua. The library uses the OpenSSL library to encrypt connections. UDP is currently not supported. With the HTTP module, it is possible to wrap a TCP/SSL connection to create a HTTP object.

Compatibility

The library is designed to be used in Lua 5.3, but it may also work with older and newer versions.

Features:

  • IPv4 TCP connections
  • IPv6 TCP connections
  • SSL/TLS Encryption on TCP connections
  • HTTP wrapper for TCP connections

Work in progress:

  • Get information from X509 Certificates

Planned:

  • IPv4/IPv6 UDP support

Documentation

The full documentation and reference can be found on the Wiki page.

Examples

Some examples can also be found on the Examples page.

Multithreading

If you want to set up a server, capable of running several threads simultaneously, I recommend working with Effil, a module for multithreading support in Lua. To use all these multithreading modules, you have to work with pointers, but POINTERS ARE DANGEROUS in a high-level languages like Lua. USE THEM ONLY IF YOU KNOW WHAT YOU ARE DOING! If you are not careful enough, you could create some serious security weak spots.

And don't forget: POINTERS ARE EVIL!

About

A library written in C to provide simple IPv4/TCP and IPv6/TCP sockets in Lua

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages