{"id":51288,"library":"mdlayher-socket","title":"Socket","description":"Package socket provides a low-level network connection type which integrates with Go's runtime network poller to provide asynchronous I/O and deadline support.","status":"active","version":"0.6.0","language":"go","source_language":null,"source_url":"https://github.com/mdlayher/socket","tags":["socket","netlink","low-level","network"],"install":[{"cmd":"go get github.com/mdlayher/socket","lang":"bash","label":"Install github.com/mdlayher/socket"}],"dependencies":[],"imports":[{"symbol":"socket","correct":"github.com/mdlayher/socket"}],"quickstart":{"code":"import \"github.com/mdlayher/socket\"\n\nfunc main() {\n    conn, _ := socket.New(socket.AF_NETLINK, socket.SOCK_RAW, 0)\n    defer conn.Close()\n}","lang":"go","description":"Create a new netlink socket connection."},"warnings":[{"fix":"Use higher-level packages like github.com/mdlayher/netlink instead.","message":"This package is intended for building OS-specific socket packages, not for direct use in end-user applications.","severity":"gotcha","affected_versions":">=0.6.0"}],"env_vars":null,"search_vec":"'asynchron':22 'connect':10 'deadlin':25 'go':15 'i/o':23 'integr':13 'level':8,31 'low':7,30 'low-level':6,29 'netlink':28 'network':9,18,32 'packag':2 'poller':19 'provid':4,21 'runtim':17 'socket':1,3,27 'support':26 'type':11","created_at":"2026-06-15T06:07:36.102578+00:00","updated_at":"2026-06-15T06:07:36.102578+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mdlayher/socket","github":"https://github.com/mdlayher/socket","docs":"https://pkg.go.dev/github.com/mdlayher/socket#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}