mirror of
				https://github.com/lunarmodules/luasocket.git
				synced 2025-10-31 18:35:45 +01:00 
			
		
		
		
	Forgot a few files.
This commit is contained in:
		
							
								
								
									
										1
									
								
								FIX
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								FIX
									
									
									
									
									
								
							| @@ -7,3 +7,4 @@ new timming functions. higher resolution, no wrap around | |||||||
| bug fixes in the manual | bug fixes in the manual | ||||||
| getfd missing cast | getfd missing cast | ||||||
| added unix domain support example | added unix domain support example | ||||||
|  | fixed local domain socket kludge of name size | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								test/excepttest.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								test/excepttest.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | local socket = require("socket") | ||||||
|  | try = socket.newtry(function() | ||||||
|  |     print("finalized!!!") | ||||||
|  | end) | ||||||
|  | try = socket.protect(try) | ||||||
|  | print(try(nil, "it works")) | ||||||
							
								
								
									
										10
									
								
								test/unixtest.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								test/unixtest.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | socket = require("socket") | ||||||
|  | f = loadlib("etc-1.0.dylib", "unix_open") | ||||||
|  | f(socket) | ||||||
|  | u = socket.unix() | ||||||
|  | print(u:bind("/tmp/luasocket")) | ||||||
|  | print(u:listen()) | ||||||
|  | c = u:accept() | ||||||
|  | while 1 do | ||||||
|  |     print(assert(c:receive())) | ||||||
|  | end | ||||||
		Reference in New Issue
	
	Block a user