📄 9951.html
字号:
<html>
<head>
<title>Some problem of winsock</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Some problem of winsock</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:fang@ms1.tisnet.net.tw">Tony</a> on February 08, 1999 at 21:55:35:<p>
Hi , all<br>i've written a program of client/server with Winsock control. <br>surely, I've make the server listen and accept request ,and the client had set up the server's IP and port. <p>first time I clicked the "command1" button , but next time when i push the button again , an error occured<br>"Address in used"<br>???<br>Thanks, you can answer this question in Chinese or English..<br> <p><br>Private Sub Command1_Click()<br>TCPClient.Connect<br>End Sub<p>Private Sub Form_Load()<br>TCPClient.RemoteHost = "127.0.0.1"<br>TCPClient.RemotePort = 2404<br> <p>End Sub<p>Private Sub TCPClient_Connect()<p>TCPClient.SendData txtSend.Text<br>MsgBox "sent"<p>End Sub<p>Private Sub TCPClient_DataArrival(ByVal bytesTotal As Long)<br>Dim strData As String<br>TCPClient.GetData strData<br>txtOutput.Text = strData<p><p>End Sub<p>Private Sub TCPClient_SendComplete()<br>TCPClient.Close<br>frmSendMsg.Hide<p><br>End Sub<p><br> <br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9951-->
<!--top: 10054--><li><a href="10054.html">Re: Some problem of winsock</a> <b>Maxwell</b> <i>03:55:37 2/11/99</i>
(<!--responses: 10054-->0)
<ul><!--insert: 10054-->
</ul><!--end: 10054-->
<!--top: 9961--><li><a href="9961.html">Re: Some problem of winsock</a> <b>6</b> <i>07:06:00 2/09/99</i>
(<!--responses: 9961-->0)
<ul><!--insert: 9961-->
</ul><!--end: 9961-->
</ul><!--end: 9951-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -