|
Hi guys,
I am a team member of web server development.
I want to make a TCP connection between web server and my client, whare my client is behind proxy.
Can any one tell me is it possible.
waiting for reply.
Kamlesh
Software Developer.
|
|
|
|
|
See your previous question.
It's no need to create a new username and post the question again.
|
|
|
|
|
Another member of his team perhaps leppie visualizes:
Screaming boss: Stop everything, and everyone look for that answer now!!!!
|
|
|
|
|
I am having dejavu, or one of your team members just asked the same question 2 posts below...
|
|
|
|
|
How do I call name from
private void send(string name, string surname)
so that I can also use it in my form load
private void Form1_Load(object sender, System.EventArgs e)
|
|
|
|
|
public static void send(string name, string surname)<br />
.<br />
.<br />
.<br />
<br />
private void Form1_Load(object sender, System.EventArgs e) <br />
{<br />
send("Name","LastName");<br />
}
|
|
|
|
|
I actualy need to write only the name in the text file like
streamWriters.WriteLine( System.DateTime.Now + " name is " + send.name );
how can I call only name.
|
|
|
|
|
public static void send(string name, string surname)<br />
{<br />
}<br />
<br />
public static void send(string name)<br />
{<br />
string n = name;<br />
return n;<br />
}<br />
<br />
<br />
private void Form1_Load(object sender, System.EventArgs e) <br />
{<br />
streamWriters.WriteLine( System.DateTime.Now.Tostring() + " name is " + send(name) ); <br />
<br />
}
|
|
|
|
|
is it possible to run an application which has been developed in C#, on a machine which doesn't has framework installed on it?.
satz32
|
|
|
|
|
No, thats like trying to make car drive on water. It wasnt meant to, it wasnt built for that purpose.
|
|
|
|
|
The possibilities are:
1. .NET Framework installed
2. without .NET Framework but you must link your program using this:
http://www.remotesoft.com/linker/
|
|
|
|
|
if your C# Application have to run in machine in which is not connected with internet you 'must' install framework.
|
|
|
|
|
Hi Guys,
I am been a member of the team developing a WebServer.
I wanna want to know that is it possible to make a TCP connection to the webserver wherein my client is behind the proxy.
Does this condition looks Feasible ?
Kindly looking for an reply.
girish
Girish
Software Developer
|
|
|
|
|
I don't think so. You need a direct connection.
That is the meaning of proxy, to block direct connection.
TcpClient -> no
HttpWebRequest -> yes (http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.proxy.aspx)
|
|
|
|
|
From a server point of view, as long as the proxy is working, it should be transparent. But I suspect you wont be able to use TCPClient from the client, but rather WebClient or HttpWebRequest.
|
|
|
|
|
Yes it is possible as far as ur server contail real IP. Doesn't metter where is the client.
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
can anyone help me to read the nodes and values of a XML to a multidimensional array.there is only single parent node for my xml page.
Vipin
|
|
|
|
|
We cannot help you, if we don't know the XML file.
We must see it first.
|
|
|
|
|
using(System.IO.StreamReader sr = new System.IO.StreamReader(temp_path))
{
//没有到达文件结尾时一直读取文件
while(sr.Peek() > 0)
{
//读出一行文本
string temp_string = sr.ReadLine();
//进行编码转换,原ASCI码转换成Unicode编码
Here how to do? I tried two days but no good^^
//连接到输出文件内容中
file_context += temp_string + " ";
}
}
|
|
|
|
|
using(System.IO.StreamReader sr = new System.IO.StreamReader(temp_path))
{
//没有到达文件结尾时一直读取文件
while(sr.Peek() > 0)
{
//读出一行文本
string temp_string = sr.ReadLine();
//convert ASCII to Unicode
Here how to do? I tried two days but no good^^
//连接到输出文件内容中
file_context += temp_string + "
";
}
}
|
|
|
|
|
How to do what?
If I venture to do a guess, you are trying to read a file using a specific encoding? Then you just have to specify the encoding when you create the StreamReader.
You don't have to use Peek. Just use ReadLine until it returns null.
---
b { font-weight: normal; }
|
|
|
|
|
the source txt file is encodeing with ASCII
i want to display it...with Unicode not ASCII(98 97 25 20....)
|
|
|
|
|
Then specify the ASCII encoding when you open the StreamReader.
---
b { font-weight: normal; }
|
|
|
|
|
Then specify the ASCII encoding when you open the StreamReader.
how to do this?
sr.CurrentEncoding??
|
|
|
|
|
new System.IO.StreamReader(temp_path, Encoding.ASCII)
---
b { font-weight: normal; }
|
|
|
|