套接字连接的脚本 [英] script for socket connection

查看:49
本文介绍了套接字连接的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hye那里..


我使用asp.net framework 3.5 c#langguage开发了一个Web应用程序..而且它完全没能成功...但是我遇到了问题要求被更改....应用程序将数据发送到其他PC ..我把web.config这个键放在


    < add key =" dss"值= QUOT; dss.datalogger" />
$
    < add key =" dssPort"值= QUOT; 9005" />


 


并设置为主机文件(c:\window\system32 \driver\etc\host )


  10.10.10.1  dss.datalogger


 


所以它会识别dss.datalogger ---> 10.10.10.1&NBSP;&NBSP; ..所以我称之为服务器进程


 


问题是。我想将其更改为客户端进程,这意味着客户端浏览器需要处理数据和READ CLIENT主机文件,并根据客户端设置的地址dss.datalogger主机文件发送它。


我该如何完成这件事..


谢谢。


 

解决方案

可以您说服客户在服务器上保存您的应用程序首选项所需的信息吗?您还可以考虑提供一个选项,将文件上传到可以处理它的服务器。


在Web开发方案中,读取客户端驱动器信息是黑客行为,不是直截了当的,也不建议使用。感谢。


Hye There..

I have developed one web application using asp.net framework 3.5 c# langguage ..and its DONE WELL SUCCESSFULLY..but i have a problem when the requirement is changed....The application will send data to other pc..and i put at web.config this key

    <add key="dss" value="dss.datalogger" />
    <add key="dssPort" value="9005" />

 

and set at host file (c:\window\system32\driver\etc\host)

  10.10.10.1   dss.datalogger

 

so it will recognize dss.datalogger ---> 10.10.10.1   ..so i call it as a server process

 

the problem is.i want to change it as a client process which mean client browser will need to process the data and READ CLIENT host file and sent it according to the address dss.datalogger host file set by client..

how can i make this thing done..

thanks.

 

解决方案

can you convince the clients to save the the information required as preferences for your application on the server? you can also consider providing an option to upload the file to the server where it can be processed.

In web development scenarios, Reading the clients drive information is hack, not straightforward and not recommended. Thanks.


这篇关于套接字连接的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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