mirror of
				https://github.com/nabbar/golib.git
				synced 2025-10-31 19:12:35 +08:00 
			
		
		
		
	Package Socket:
- fix tcp,udp,unix socket - add socket unixgram for session less unix socket - optmize process & code - add some standalone test for server / client (add example server config for rsyslog) Package Network/Protocol: - add unixgram protocol Package Errors: - fix bug in loop to prevent circular include
This commit is contained in:
		| @@ -40,7 +40,7 @@ import ( | ||||
| 	scksru "github.com/nabbar/golib/socket/server/udp" | ||||
| ) | ||||
|  | ||||
| func New(handler libsck.Handler, proto libptc.NetworkProtocol, sizeBufferRead libsiz.Size, address string, perm os.FileMode) (libsck.Server, error) { | ||||
| func New(handler libsck.Handler, proto libptc.NetworkProtocol, sizeBufferRead libsiz.Size, address string, perm os.FileMode, gid int32) (libsck.Server, error) { | ||||
| 	switch proto { | ||||
| 	case libptc.NetworkTCP, libptc.NetworkTCP4, libptc.NetworkTCP6: | ||||
| 		s := scksrt.New(handler, sizeBufferRead) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 nabbar
					nabbar