[#CreateSock]
= CreateSock
:mrdocs:

Socket factory&period; Defaults to `CreateSockOS()`, but can be overridden by unit tests&period;

== Synopsis

Declared in `&lt;netbase&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
extern
std::function&lt;std::unique&lowbar;ptr&lt;Sock&gt;(int, int, int)&gt; CreateSock;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
