TCP服务器

编程入门 行业动态 更新时间:2024-10-19 08:45:40
本文介绍了TCP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Ciao ... Windows CE 6.0中的应用程序在ascolto中起决定作用. Vorrei gestirlo在多线程游戏中的播放器和监听器中显示了所有消息. Da cosa puo dipendere ??? vi posto il mio TCPServer:

Ciao... ho un applicazione che gira su windowsCE 6.0 con un tcplistener in ascolto su una determinata porta. Vorrei gestirlo in multithreading ma ad un certo punto il mio pc si pianta e fino a quando nn muovo qualcosa sul pc, il listener non accetta più richieste. Da cosa puo dipendere??? vi posto il mio TCPServer:

Public Sub Server() tcpListener = New TcpListener(IPAddress.Any, 50000) listenThread = New Threading.Thread(New Threading.ThreadStart(AddressOf ListenForClients)) listenThread.Start() End Sub Private Sub ListenForClients() tcpListener.Start() Console.WriteLine("Server avviato") While (True) Try Dim client As TcpClient = tcpListener.AcceptTcpClient() clientSocket = client Dim clientThread As Threading.Thread = New Threading.Thread(New Threading.ThreadStart(AddressOf doChat)) clientThread.Start() Catch ex As Exception Console.WriteLine("Errore server. Riavviare") Close() End Try End While End Sub

使用Google翻译进行翻译: 你好... 我有一个在WindowsCE 6.0上运行的应用程序,其中TcpListener侦听端口.我将以多线程处理它,但有时我的计算机挂起,直到nn在计算机上移动某些东西之前,侦听器不再接受更多请求.可能取决于什么? [/EDIT]

Translation using Google translate : Hello ... I have an application that runs on WindowsCE 6.0 with a TcpListener listening on a port. I would handle it in multithreaded but at some point my computer hangs and until nn move something on the computer, the listener does not accept more requests. May depend on what?? [/EDIT]

推荐答案

Aiuto !!!! 如何使用 framework 3.5或sta risolto tale problema. Ma io ho bisogno di risolverlo sul 2.0 Che dite ??? Aiuto!!!! Ho letto che si puo trattare della ram(io ho 1GB) e che sul framework 3.5 è stato risolto tale problema. Ma io ho bisogno di risolverlo sul 2.0 Che dite???

更多推荐

TCP服务器

本文发布于:2023-11-15 21:28:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598106.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   TCP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!