Android TCP客户端和Visual Studio C#服务器 [英] Android TCP client and visual studio C# server

查看:404
本文介绍了Android TCP客户端和Visual Studio C#服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想知道如何制作一个android tcp客户端,该客户端将像消息一样将数据发送到使用套接字在Visual Studio C#中内置的服务器.

我尝试过的事情:

我正在尝试在android中使用套接字,但无法做到这一点.请帮助..

Hello,
I want to know how to make a an android tcp client that is going to send the data like an message to a server which is built in visual studio c# using sockets.

What I have tried:

I am trying using sockets in android but unable to do it. Please help ..

推荐答案

套接字| Android开发人员 [ ^ ]


这是我们在此类中最常遇到的问题.

例如,看看我几周前提供的答案:
This is a question that we get most often, in this category.

For example, have a look at the answer that I provided a few weeks ago: Android TCP client and C# visual studio server how to do it.[^].

The thing is you need to understand that Android as well as .NET framework, both support TCP communication, you just need to know how to make them work together — you can make a TCP client on Android and TCP listener (server) on the .NET, and vice versa. The primary thing to learn and understand is the way that a TCP network works. Rest would be simple as both the platforms provide the tools for network programming.


这篇关于Android TCP客户端和Visual Studio C#服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆