关于Socket的问题

wujingbiao 2003-01-13 10:00:30
我在服务器端的OnAccept事件里写
procedure TForm1.ServerSocketAccept(Sender: TObject;
Socket: TCustomWinSocket);
begin
IsServer := True;
Statusbar1.Panels[0].Text := 'Accept connection from:' + Socket.RemoteAddress ;
end;

为什么出现[Error] Unit1.pas(98): Undeclared identifier: 'IsServer'
请帮帮忙
...全文
47 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
CoolDesigner 2003-01-16
  • 打赏
  • 举报
回复
你没定义变量!
bosidon 2003-01-13
  • 打赏
  • 举报
回复
isServer 是what
ahpei 2003-01-13
  • 打赏
  • 举报
回复
理由是没有定义标志符.
ahpei 2003-01-13
  • 打赏
  • 举报
回复
var
isServer:Boolean;
....

1,594

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧