Skip to content

crisadamo/mojo-libc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Mojo's libc support

Note: its a work in progress. Variadic syscall not working at the moment.

Supported Functionality

Basic socket connections

Example for server and client

Note: getaddrinfo is not working properly.

To test the socket functionality there are two functions:

  • __test_socket_server__ that start listening for connections on 127.0.0.1:8083 and once a client connects it send the "Hello, Mojo!" message.
  • __test_socket_client__ that connects to 127.0.0.1:8083 send the message "Hello, world Server" and prints the reply from the server.

In order to test it you need to create two notebooks, on the first one you need to run the __test_socket_server__() and then on the second one run __test_socket_client__().

Basic file system operations

Example here

To test it you can play around with the __test_file__ function.

Releases

No releases published

Packages

No packages published