maket online

This commit is contained in:
2024-04-18 19:21:54 +05:00
parent 9213c4fa57
commit 1a0437f848
14 changed files with 153 additions and 31 deletions
+6 -3
View File
@@ -8,6 +8,7 @@
#include "Engine/levelstreamingdynamic.h"
CSocket* soc;
char ipc[100];
/*for working tarray::Contains*/
bool operator==(const Fcppcoords& c1, const Fcppcoords& c2) {
@@ -132,9 +133,11 @@ void UcppGI::avoidAutoState()
void UcppGI::makeSocket(FString ip, int port)
{
char* ipc=NULL;
wcstombs(ipc, *ip, ip.Len());
soc = new CSocket(ipc, port);
//static char ipc[100];
wcstombs(&ipc[0], *ip, ip.Len()+1);
//size_t sz;
//wcstombs_s(&sz, ipc, ip.Len(),*ip,ip.Len());
soc = new CSocket(&ipc[0], port);
}
void UcppGI::setColor(uint8 code, FColor color)