#ifndef _ConnSock_ConnSock_h_ #define _ConnSock_ConnSock_h_ #include <Core/Core.h> using namespace Upp; String snd(String r, int a){ TcpSocket s; if(!s.Connect("127.0.0.1", 11811)) { return "x"; } s.Put(r + "\n\0"); if(a==1){ String st = s.GetLine(); return st; } return "y"; } #endif
if(!s.Connect("127.0.0.1", 11811)) { return "x"; }
Report message to a moderator