💾 Archived View for gmi.noulin.net › gitRepositories › spartserv › file › spartasm › data.asm.gmi captured on 2023-07-10 at 15:38:49. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
data.asm (1194B)
1 struc sockaddr_in 2 sin_family: resw 1 3 sin_port: resw 1 4 sin_addr: resd 1 5 endstruc 6 7 sa: istruc sockaddr_in 8 at sin_family, dw AF_INET 9 at sin_port, dw 0 10 at sin_addr, dd 0 ;INADDR_ANY 11 iend 12 13 new_line db 0x0a 14 15 invalid_s db "4 Invalid request",0x0d,0x0a,0x00 16 invalid_s_len equ $ - invalid_s 17 18 text_gemini_s db "2 text/gemini",0x0d,0x0a,0x00 19 text_gemini_s_len equ $ - text_gemini_s 20 21 filter_prev_dir db "../",0x00 22 filter_prev_dir_len equ $ - filter_prev_dir 23 24 crlf db 0x0d,0x0a,0x00 25 crlf_len equ $ - crlf 26 27 msg_bind_error db "Error - Bind() failed. Check if port is in use or you have sufficient privileges.",0x00 28 msg_bind_error_len equ $ - msg_bind_error 29 msg_error db "An error has occured, exiting",0x00 30 msg_error_len equ $ - msg_error 31 msg_help db "Usage: ./spartasm /path/to/directory port",0x00 32 msg_help_len equ $ - msg_help 33 msg_not_a_directory dd "Error: Specified document root is not a directory",0x00 34 msg_not_a_directory_len equ $ - msg_not_a_directory 35 msg_request_log db 0x0a,"Request: ",0x00 36 msg_request_log_len equ $ - msg_request_log