Add socket library
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,6 +8,16 @@ int main()
|
||||
if (Network::Initialize() == true)
|
||||
{
|
||||
Log::Print("[SERVER] Winsok zostal zainicjolizowany. Mozemy dzialac.");
|
||||
Socket socket;
|
||||
if (socket.Create() == Result::Success)
|
||||
{
|
||||
Log::Print("[SERVER] Utworzylem gniazdo.");
|
||||
socket.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
Log::PrintError("[SERVER] Nie udalo mi sie utworzyc gniazda.", -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user