Search found 8 matches

by ANtlord
Thu Jul 19, 2012 6:05 pm
Forum: C++ Development
Topic: wxSocketServer
Replies: 4
Views: 2259

Re: wxSocketServer

So, this problem has next solution. In method of socket's event for new command I add next code

Code: Select all

wxSocketBase *sock = e.GetSocket();
unsigned char c;
sock->Read(&c, 1);
*Text1<<wxT("new command\n");
SOLVED!
by ANtlord
Thu Jul 19, 2012 6:03 pm
Forum: wxWidgets Development (Russian)
Topic: Проблема c wxSocketServer
Replies: 3
Views: 10579

Re: Проблема c wxSocketServer

В общем надо делать в методе события "читать сокет" и все работает. Добавить надо следующее

Code: Select all

wxSocketBase *sock = e.GetSocket();
unsigned char c;
sock->Read(&c, 1);
*Text1<<wxT("new command\n");
РЕШЕНО!
by ANtlord
Wed Jul 18, 2012 6:07 am
Forum: wxWidgets Development (Russian)
Topic: Проблема c wxSocketServer
Replies: 3
Views: 10579

Re: Проблема c wxSocketServer

Прошу прощения, забыл написать. Я тестирую сервер через telnet, а насчет примера, я его тоже смотрел.
by ANtlord
Wed Jul 18, 2012 4:42 am
Forum: C++ Development
Topic: wxSocketServer
Replies: 4
Views: 2259

Re: wxSocketServer

No, I didn't. I looking now this samle, and I don't see events for connection. wxSocket has wxEVT_SOCKET, and I can't detect event for wxServer and wxClient.
by ANtlord
Tue Jul 17, 2012 6:18 pm
Forum: wxWidgets Development (Russian)
Topic: Проблема c wxSocketServer
Replies: 3
Views: 10579

Проблема c wxSocketServer

Добрый день, форумчане! Решил переписать сервер с Qt на wxWidgets. Докопался, что тут есть некие wxSocketServer, wxSocketClient, wxSocketBase. Посмотрел на Qt-код, подумал, что то что надо! Почитал 18 главу Julian'a Smart'a, изучил примеры, которые в дистре wxWidgets находятся. По образу и подобию, ...
by ANtlord
Tue Jul 17, 2012 6:00 pm
Forum: C++ Development
Topic: wxSocketServer
Replies: 4
Views: 2259

wxSocketServer

Good day, wxDevelopers. I began study networks, and decided to develop application on likest wxWidgets. I read Julian Smart and research wxSocket's sample. But I got issue. My "server" set connection with client and it receive one command from client. My "server" don't get second...
by ANtlord
Fri Jun 29, 2012 5:09 pm
Forum: wxWidgets Development (Russian)
Topic: Автодополнение в CodeBlocks для wxWidgets проектов
Replies: 3
Views: 19680

Автодополнение в CodeBlocks для wxWidgets проектов

Добрый день, форумчане! Такая проблема: Использую wxWidgets 2.9.3 в CodeBlocks 10.05 под LinuxMint 12 (LISA). Проблема собственно с автодополнением кода именно в wxWidgets проектах. Оно работает везде. Раньше это решалось созданием проекта без использования wxSmith. А теперь и это не помогает. Однак...