本文目录:
七年级上英语单词表
七年级下册单词表
Unit1
pal好朋友
pen pal 笔友
Canada 加拿大
France 法国
Japan 日本
the United States 美国
Australia 澳洲;澳大利亚
Singapore 新加坡
the United Kingdom 英国
country 国家
Sydney 悉尼
New york 纽约
Paris 巴黎
Toronto 多伦多
Tokyo 东京
live 居住
language 语言
Japanese 日语;日本人
would 世界
French 法国人;法语
like 爱好
dislike 讨厌;不喜欢
Unit2
post 邮件;邮递
office 办公室;事务所
post office 邮局
library 图书馆
restaurant 餐馆;饭店
bank 银行
supermarket 超级市场
St.=street 街;街道
pay 付钱;支付
pay phone 投币式公用电话
park 公园
ave=avenue 大街;林荫道
center 中央;中心
bridge 桥
mail 邮件;邮政
there 在那里
mear 在—近旁
across 横过;在对面
across from 在—对面
next 紧靠—的旁边;贴近
next to紧靠—的旁边;贴近;最接近
between 介于—之间
front 前面;前边
in front of 在—前面
behind 在—之后
neighborhood 附近;邻近
just 直接地;就;只;仅仅
straight 一直;直接
turn 转弯;转变方向
left 向左;左边
down 向下;下去;沿着
right 向右;右边
on the right 在右边
open 开着的;营业中的
market 市场;市集
clean 清洁的;干净的
quiet 宁静的
dirty 肮脏的
house 房子;住宅
welcome 欢迎
garden 菜园;花园
district 区域;地方
enjoy 享受—的乐趣;欣赏
walk 散步;步行
take a walk 散步
through 穿过;通
beginning 过开
tour 旅行;游历
visit 参观;游览
place 地方;地点
fun 愉快;开心
have fun玩得开心
if 如果
hungry 饥饿的
arrive 到达;抵达
way 路;路线;路途
take 乘;坐;搭
taxi 出租车;的士;计程车
airport 私人飞机;小型民用机场
pass 通过
hope 希望;盼望;期待
yours用在信末署名前,做客套语
Unit3
koala (澳洲)树袋熊
tiger 老虎;虎
elephant 大象
dolphin海豚
panda 熊猫
lion 狮子
penguin 企鹅
girraffe 长颈鹿
zoo 动物园
cute 可爱的;聪明的
map 地图;图
smart 聪明的;漂亮的
animal 动物
box 方格;方框
kind of 有几分
south 南;南方;在南方的;南部
Africa 非洲
bingo 宾戈
ugly 丑陋的;难看的
clever 聪明的;机灵的
friendly 友好的
beautiful 美丽的;美好的
shy 害羞的;怕羞的
other 其他的;另外的
grass草
sleep 睡;睡觉
during 在—期间
at night 在晚上;在夜里
leaf 叶;树叶
lazy 懒惰的;懒散的
meat 肉;肉类
relax 放松;休息
Unit4
shop 商店;店铺
assistant助手;助理
shop assistant 店员
doctor 医生
reporter 记者;通讯员
policeman 男警察
waiter 侍者;服务员
bank clerk 银行职员
hospital 医院
now 现在;此时
star 担任主角;主演
policewoman 女警官;女警察
nurse 护士
money钱;金钱;货币
give 给;授予
get 获得;得到;购买;拿来
wear 穿;戴
uniform 制服
sometimes 不时;有时
in 在—期间;在(一段时间)之内
dangerous 危险的
thief 小偷;贼
late 晚;晚于通常时间
out 在外;向外
talk 谈话;谈论
station 车站;政府机关的署;局
TV station 电视台
police 警方;警察
police station 警察局
newspaper 报纸
hard 辛苦地;努力地
as作为
at按照;根据
summer 夏季;夏天
story 故事;事迹;小说
magazine 杂志;期刊
young 年轻的,年纪小的
play 戏剧;剧本
news 新闻;消息
children 孩子(复数)
international国际的
teach 教;讲授
skill 技能;技巧
sir 先生;阁下
madam女士;夫人
Unit5
clean 打扫;清除
read 读;阅读
on 通过;以—的方式
apartment 公寓;住宅
TV show 电视节目
sure 当然;的确
wait 等待;等候
wait for 等候;等待
toy 玩具
west 西;西方;西方的
activity 活动
shop 买东西;购物
mall 购物商场;商业街
pool 水池;水塘
camera 照像机
bird 鸟
Unit6
rain 下雨
windy 有风的;多风的
cloudy 多云的;阴天的
sunny 阳光充足的
snow 下雪
weather 天气;气候
Moscow 莫斯科
Boston 波士顿
cook 烹调;煮
study 学习
bad 坏的;劣质的
terrible 很糟的;极坏的;可怕的
pretty 相当;很;颇
hot 热的
cold 寒冷的
cool 凉爽的
warm 温暖的;暧和的
humid 潮湿的;湿润的
wacation 假期;休假
on vacation 在度假中
take a photo 拍照
lie 平卧;躺
beach 海滩
look at 看;朝—看
group 团体;组
cool 令人满意的;绝妙的
surprised 感到惊讶的
heat 热;热度
relaxed 放松的;得到休息的
winter 冬季
scarf 围
everyone 每个人
have a good time 玩得高兴;过得快乐
man 男人;人;人类
Review of units 1-6
describe描述;形容
look for 寻找;寻求
talk about 谈论;讨论;议论
direction 方向
unit 单元
most 最
following 下列的;下述的
in order to 为了
improve 改进;改善
Unit7
hair 头发;毛发
curly卷曲的;卷毛的
straight 直的;笔直的
tall 高的
medium中等的
height 高度
thin 瘦的
heavy 重的
build 体格;体形
like 像;如同
always 总是;始终
captain 队长;首领
team 队;组
popular 受欢迎的;通俗的;流行的
blonde 金黄色的
good-looking 漂亮的
bit 一点儿;少许
a little bit 一点儿;少许
joke 笑话;玩笑
never 决不;从不
stop 停止;终止
brown 棕色的;褐色的
person 人;人物
beard 胡须
glasses 眼镜
look 外表;外貌
remember 牢记;记住
pop singer 流行音乐
singer 歌唱家;歌手
not…any more 不再……
say 讲
nobody 没有人;没人
Unit8
would will的过去式,表示意愿
I’d = I would
noodles面条
beef 牛肉
mutton 羊肉
cabbage 洋白菜;卷心菜
potato 土豆;马铃薯
special 特色菜
drink 饮料
large 大的;宽广的
size 大小;尺寸
bowl 碗;一碗的容量
he’d= he would
juice 果汁;果汁饮料
dumpling 饺子
porridge粥;糊
tea 茶;茶叶
green tea 绿茶
rice 米;稻;米饭
soup 汤;羹
onion 洋葱
fish 鱼;鱼肉
Tel 电话
RMB 人民币
Mon. 星期一
Tues. 星期二
Wed. 星期三
Thurs.星期四
Fri 星期五
reason 原因;理由
menu菜单
Unit9
was is的过去式
did do的过去式
went go的过去式
visit 拜访;访问
test 考试;测验
What about…?—?—怎么样?
stay 停留;留下
at home 在家
have 做;进行;从事
do some reading 读;阅读
practice 练习;实践
regular 正常的;规则的;有规律的
irregular不规则的;无规律的
present 现在时态的;现在的;目前的
past过去时态的;以前的;过去的
mountain 山;山脉
geography 地理学
spend 度过;过
week 星期;周
yesterday 昨天
No.= number 编号;号
middle 中等的
middle school 中学
most 大多数的;大部分的;几乎全部的
go shopping 购物
had have的过去式]
saw see的过去式
talk 访谈节目;谈话;交谈;演讲
talk show 访谈节目
wrote write的过去式
song 歌;歌曲
go for a walk 去散步
sat sit的过去式
down向下;在下面;下去;降下
cat 猫
It is time to …… –该是—的时候了
wasn’t= was not
no 没有的;极少的
anything 任何事;无论何事
suggestion 建议;意见
Unit10
New York City 纽约市
camp 野营;营地
summer camp 夏令营
museum 博物馆
guide 向导
central 中心的;位于中心的
didn’t= did not
exam 考试;检查
really 真的;是吗;真是的
rainy 下雨的;多雨的
were are的过去式
fantastic 极好的
unfriendly 不友善的;不友好的
awful 极坏的;极讨厌的
delicious 美味的
expensive 昂贵的;价高的
crowded 拥挤的
cheap 廉价的;便宜的
think of 思考;考虑
water 水
cry 流泪;哭泣
corner 角落;街角;墙角
make 使;促使;迫使
made make的过去式
feel 感到;觉得
walk 走;步行;散步
back 回原处;往回去
decide 决定;下决心
wall墙壁;围墙;城墙
the Great Wall 万里长城
palace 宫殿
the Palace Museum 故宫
square 广场
Tian’an Men Square 天安门广场
Hutung 胡同
make 做;制作
classmate 同班同学
discuss 讨论;议论
report 报告;汇报
sex 性别
Unit11
soap 肥皂
soap opera 肥皂剧
sitcom 情景喜剧
situation情景;形势
nothing 没什么;一个都没有
ha 哈
stand 忍受
mind 介意
king 君主;国王
How about ? …怎么样?
fact 事实;真实事情
in fact 实际上;其实;确切地说
culture 文化
host 主持人
agree 同意;赞成
agree with 赞同;持相同意见’
sunglasses太阳镜
belt 皮带
wallet 钱包
key ring 钥匙链
by 由;被
fashion 时尚;潮流
said say的过去式
article 文章
put 放;摆;装
idea 主意;想法
color色彩鲜艳的
Unit12
rule 规则
hallway 走廊;过道
classroom 教室
fight 打架;争吵
Ms 女士
outside 外面的;在外部的
dining 进餐;吃饭
hall大厅;礼堂
have to 不得不;必须
else 其他的;别的;另外的
sports shoes 运动鞋
gym 体育馆
Dr= doctor 医生(缩写)
by 到—之前;不迟于
wash 洗;洗涤
later 后来;以后
the Children’s Palace 少年宫
no talking 不许讲话
loudly 大声地
Review of units 7-12
aceessory 配件;饰品
snow 雪
order 预订;点
opinion 意见;看法
Additional materia
order 订单;订货
form表格
希望对你有帮助!
C#谁能给我个,C/S 通过Socket与线程通信的例子,,
VS2003下的:
//======================客户端=========================
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace S_c
{
public class Form1 : System.Windows.Forms.Form
{
private IPEndPoint ipendpoint;
private Socket localsocket;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing ){
if (components != null){
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
this.SuspendLayout();
this.button1.Location = new System.Drawing.Point(208, 32);
this.button1.Name = “button1”;
this.button1.Size = new System.Drawing.Size(64, 56);
this.button1.TabIndex = 0;
this.button1.Text = “Begin Connect”;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.label1.Location = new System.Drawing.Point(8, 32);
this.label1.Name = “label1”;
this.label1.Size = new System.Drawing.Size(56, 23);
this.label1.TabIndex = 1;
this.label1.Text = “HostIP:”;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.textBox1.Location = new System.Drawing.Point(64, 32);
this.textBox1.Name = “textBox1”;
this.textBox1.Size = new System.Drawing.Size(128, 21);
this.textBox1.TabIndex = 2;
this.textBox1.Text = “127.0.0.1”;
this.label2.Location = new System.Drawing.Point(8, 64);
this.label2.Name = “label2”;
this.label2.Size = new System.Drawing.Size(56, 23);
this.label2.TabIndex = 1;
this.label2.Text = “Port:”;
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.textBox2.Location = new System.Drawing.Point(64, 64);
this.textBox2.Name = “textBox2”;
this.textBox2.Size = new System.Drawing.Size(128, 21);
this.textBox2.TabIndex = 2;
this.textBox2.Text = “”;
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(24, 8);
this.groupBox1.Name = “groupBox1”;
this.groupBox1.Size = new System.Drawing.Size(296, 112);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = “Connect”;
this.groupBox2.Controls.Add(this.richTextBox1);
this.groupBox2.Location = new System.Drawing.Point(24, 128);
this.groupBox2.Name = “groupBox2”;
this.groupBox2.Size = new System.Drawing.Size(296, 176);
this.groupBox2.TabIndex = 4;
this.groupBox2.TabStop = false;
this.groupBox2.Text = “Receive Messages”;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(3, 17);
this.richTextBox1.Name = “richTextBox1”;
this.richTextBox1.Size = new System.Drawing.Size(290, 156);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = “”;
this.groupBox3.Controls.Add(this.richTextBox2);
this.groupBox3.Location = new System.Drawing.Point(24, 312);
this.groupBox3.Name = “groupBox3”;
this.groupBox3.Size = new System.Drawing.Size(296, 176);
this.groupBox3.TabIndex = 5;
this.groupBox3.TabStop = false;
this.groupBox3.Text = “Send Messages”;
this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox2.Location = new System.Drawing.Point(3, 17);
this.richTextBox2.Name = “richTextBox2”;
this.richTextBox2.Size = new System.Drawing.Size(290, 156);
this.richTextBox2.TabIndex = 0;
this.richTextBox2.Text = “”;
this.button2.Location = new System.Drawing.Point(69, 496);
this.button2.Name = “button2”;
this.button2.Size = new System.Drawing.Size(64, 23);
this.button2.TabIndex = 6;
this.button2.Text = “SEND”;
this.button2.Click += new System.EventHandler(this.button2_Click);
this.button3.Location = new System.Drawing.Point(208, 496);
this.button3.Name = “button3”;
this.button3.Size = new System.Drawing.Size(64, 23);
this.button3.TabIndex = 6;
this.button3.Text = “REWRITE”;
this.statusBar1.Location = new System.Drawing.Point(0, 535);
this.statusBar1.Name = “statusBar1”;
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanel1,this.statusBarPanel2});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(344, 22);
this.statusBar1.TabIndex = 7;
this.statusBarPanel1.Text = “Current Status:”;
this.statusBarPanel2.Width = 350;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(344, 557);
this.Controls.Add(this.statusBar1);
this.Controls.Add(this.button2);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.button3);
this.Name = “Form1”;
this.Text = “S_c”;
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void button1_Click(object sender, System.EventArgs e)
{
try{
ipendpoint=new IPEndPoint(IPAddress.Parse(textBox1.Text.Trim()),int.Parse(textBox2.Text.Trim()));}
catch{
statusBar1.Panels[1].Text=”Please input a valid value!”;
return;
}
Thread thread=new Thread(new ThreadStart(accp));
thread.Start();
}
private void accp(){
try{
localsocket=new Socket(localsocket.Connect(ipendpoint);}
catch{
statusBar1.Panels[1].Text=”Host not found!”;
return;
}statusBar1.Panels[1].Text=”Has connected to host–“+ipendpoint.ToString();
Thread thread=new Thread(new ThreadStart(getmsg));
thread.Start();
}
private void getmsg(){
while(true){
byte[] buffer=new byte[128];
localsocket.Receive(buffer);
richTextBox1.AppendText(“\n”+System.Text.Encoding.BigEndianUnicode.GetString(buffer));
}
}
private void button2_Click(object sender, System.EventArgs e){
buffer=System.Text.Encoding.BigEndianUnicode.GetBytes(richTextBox2.Text.Trim());
localsocket.Send(buffer);
}
}
}
//======================服务端=========================
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace S_s
{ public class Form1 : System.Windows.Forms.Form
{
private IPEndPoint ipendpoint;
private Socket localsocket;
private Socket remotesocket;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing ){
if (components != null) {
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
this.SuspendLayout();
this.button1.Location = new System.Drawing.Point(208, 32);
this.button1.Name = “button1”;
this.button1.Size = new System.Drawing.Size(64, 56);
this.button1.TabIndex = 0;
this.button1.Text = “Begin Listen”;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.label1.Location = new System.Drawing.Point(8, 32);
this.label1.Name = “label1”;
this.label1.Size = new System.Drawing.Size(56, 23);
this.label1.TabIndex = 1;
this.label1.Text = “HostIP:”;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.textBox1.Location = new System.Drawing.Point(64, 32);
this.textBox1.Name = “textBox1”;
this.textBox1.Size = new System.Drawing.Size(128, 21);
this.textBox1.TabIndex = 2;
this.textBox1.Text = “127.0.0.1”;
this.label2.Location = new System.Drawing.Point(8, 64);
this.label2.Name = “label2”;
this.label2.Size = new System.Drawing.Size(56, 23);
this.label2.TabIndex = 1;
this.label2.Text = “Port:”;
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.textBox2.Location = new System.Drawing.Point(64, 64);
this.textBox2.Name = “textBox2”;
this.textBox2.Size = new System.Drawing.Size(128, 21);
this.textBox2.TabIndex = 2;
this.textBox2.Text = “”;
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(24, 8);
this.groupBox1.Name = “groupBox1”;
this.groupBox1.Size = new System.Drawing.Size(296, 112);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = “Listen”;
this.groupBox2.Controls.Add(this.richTextBox1);
this.groupBox2.Location = new System.Drawing.Point(24, 128);
this.groupBox2.Name = “groupBox2”;
this.groupBox2.Size = new System.Drawing.Size(296, 176);
this.groupBox2.TabIndex = 4;
this.groupBox2.TabStop = false;
this.groupBox2.Text = “Receive Messages”;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(3, 17);
this.richTextBox1.Name = “richTextBox1”;
this.richTextBox1.Size = new System.Drawing.Size(290, 156);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = “”;
this.groupBox3.Controls.Add(this.richTextBox2);
this.groupBox3.Location = new System.Drawing.Point(24, 312);
this.groupBox3.Name = “groupBox3”;
this.groupBox3.Size = new System.Drawing.Size(296, 176);
this.groupBox3.TabIndex = 5;
this.groupBox3.TabStop = false;
this.groupBox3.Text = “Send Messages”;
this.richTextBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox2.Location = new System.Drawing.Point(3, 17);
this.richTextBox2.Name = “richTextBox2”;
this.richTextBox2.Size = new System.Drawing.Size(290, 156);
this.richTextBox2.TabIndex = 0;
this.richTextBox2.Text = “”;
this.button2.Location = new System.Drawing.Point(69, 496);
this.button2.Name = “button2”;
this.button2.Size = new System.Drawing.Size(64, 23);
this.button2.TabIndex = 6;
this.button2.Text = “SEND”;
this.button2.Click += new System.EventHandler(this.button2_Click);
this.button3.Location = new System.Drawing.Point(208, 496);
this.button3.Name = “button3”;
this.button3.Size = new System.Drawing.Size(64, 23);
this.button3.TabIndex = 6;
this.button3.Text = “REWRITE”;
this.statusBar1.Location = new System.Drawing.Point(0, 535);
this.statusBar1.Name = “statusBar1”;
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanel1,this.statusBarPanel2});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(344, 22);
this.statusBar1.TabIndex = 7;
this.statusBarPanel1.Text = “Current Status:”;
this.statusBarPanel2.Width = 350;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(344, 557);
this.Controls.Add(this.statusBar1);
this.Controls.Add(this.button2);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.button3);
this.Name = “Form1”;
this.Text = “S_s”;
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void button1_Click(object sender, System.EventArgs e)
{
try
{
ipendpoint=new IPEndPoint(IPAddress.Parse(textBox1.Text.Trim()),int.Parse(textBox2.Text.Trim()));
}
catch
{
statusBar1.Panels[1].Text=”Please input a valid value!”;
return;
}
Thread thread=new Thread(new ThreadStart(accp));
thread.Start();
}
private void accp()
{
while(true)
{
try
{
localsocket=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
localsocket.Bind(ipendpoint);
localsocket.Listen(128);
}
catch
{statusBar1.Panels[1].Text=”Host not found or Listen has began!”;
return;
}
statusBar1.Panels[1].Text=”Listen has bengin!”;
while(true)
{remotesocket=localsocket.Accept();
Thread thread=new Thread(new ThreadStart(getmsg));
thread.Start();
}
}
}
private void getmsg()
{
while(true)
{
byte[] buffer=new byte[128];
remotesocket.Receive(buffer);
richTextBox1.AppendText(“\n”+System.Text.Encoding.BigEndianUnicode.GetString(buffer));
}
}
private void button2_Click(object sender, System.EventArgs e)
{
byte[] buffer=System.Text.Encoding.BigEndianUnicode.GetBytes(DateTime.Now+”\n”+richTextBox2.Text.Trim());
remotesocket.Send(buffer);
}
}
}
box是什么意思?
box英 [bɒks] 美 [bɑːks]
n.盒;箱;匣;一盒,一箱(东西);(剧院中的)包厢;(法庭中的)专席
v.(拳击运动)击打(某人);把(某物)装箱(或盒、匣)
第三人称单数: boxes 复数: boxes 现在分词: boxing 过去式: boxed 过去分词: boxed
例句:Do you watch it live at all or do you watch it on the box?
你是在现场看还是在电视上看?
At school I boxed and played rugby.
在学校时我既打拳击又玩橄榄球。
扩展资料:
box的同义词
1、case n. 大箱子,大容器
指用来存放或搬运物品的较大的容器。
例句:They ordered 3 cases of Coke for the evening party.
他们为晚会订购了3箱可口可乐。
This TV came in a big packing case.
这台电视机是用一个大包装箱运来的。
2、carton n. 硬纸盒;塑料盒
尤指装食品或液体的硬纸盒或塑料盒。
例句:That sort of carton is comparatively light.
那种纸盒比较轻。
The empty carton can be utilized for egg storage.
这个空盒子可用来装鸡蛋。
【bigboxhost】的内容来源于互联网,如引用不当,请联系我们修改。