Add(MainActivity,15677177,70,182)
{
Width=188
Height=288
Caption="Chat"
}
Add(TCPClient,2156747,259,217)
{
Port=3939
link(onConnectResult,8898601:doSetText,[])
link(IP,5870693:Result,[])
}
Add(SimpleStreamRW,7567076,259,322)
{
Point(WritingData)
Point(doListenerState)
link(onRead,16051672:doWork1,[(306,328)])
link(onError,16051672:doWork2,[])
link(InputStream,2156747:InputStream,[])
link(OutputStream,2156747:OutputStream,[])
link(WritingData,1244799:Value,[])
}
Add(IpHostConverter,5870693,259,161)
{
Input="gameshopyou.ddns.net"
link(onResult,15197338:doExec,[])
}
Add(Button,4564520,196,161)
{
Left=5
Top=5
Width=160
Caption="Подключиться"
Point(onClick)
link(onClick,5870693:doGetIP,[])
}
Add(TextView,8898601,322,217)
{
Left=10
Top=55
Width=155
Caption="Статус"
}
Add(EditText,1244799,273,266)
{
Left=10
Top=185
}
Add(Button,11450757,140,322)
{
Left=10
Top=220
Width=160
Caption="Отправить"
Point(onClick)
link(onClick,14705367:doExec,[])
}
Add(Button,15338077,196,224)
{
Left=5
Top=30
Width=160
Caption="Отключиться"
Point(onClick)
link(onClick,2156747:doDisconnect,[])
}
Add(EditText,4109873,329,329)
{
Left=10
Top=105
}
Add(HubEx,16051672,301,322)
{
link(onEvent,4109873:doText,[])
}
Add(AsyncTask,15197338,322,161)
{
link(onBackground,2156747:doConnect,[(366,167)(366,204)(247,204)(247,223)])
}
Add(CheckBox,12043179,196,364)
{
Left=15
Top=145
Caption="Автоприём данных"
link(onChange,7567076:doListenerState,[(244,370)(244,335)])
}
Add(AsyncTask,14705367,196,322)
{
link(onBackground,7567076:doWrite,[])
}
Ответов: 1343
Рейтинг: 31
|
|||
|
|||
карма: 2 |
|